-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc6cdd1
commit 5767399
Showing
9 changed files
with
298 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,57 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<% if(site.customConfig.language == "zh"){%> | ||
<%- include('./include/head', { siteTitle: `友链 | ${themeConfig.siteName}` }) %> | ||
<% }else{%> | ||
<%- include('./include/head', { siteTitle: `Friends | ${themeConfig.siteName}` }) %> | ||
<%}%> | ||
<%- include('./include/head', { siteTitle: `\u53CB\u94FE | ${themeConfig.siteName}` }) %> | ||
<% }else{%> | ||
<%- include('./include/head', { siteTitle: `Friends | ${themeConfig.siteName}` }) %> | ||
<%}%> | ||
</head> | ||
|
||
<body> | ||
<div class="wrapper"> | ||
<%- include('./include/header') %> | ||
<div class="main"> | ||
<div class="container"> | ||
<article class="post-wrap"> | ||
<header class="post-header"> | ||
<h1 class="post-title zh"> | ||
友链 | ||
</h1> | ||
<h1 class="post-title en"> | ||
Friends | ||
</h1> | ||
</header> | ||
<div class="post-content"> | ||
<% if (site.customConfig.friends) { %> | ||
<% site.customConfig.friends.forEach(function(friend) { %> | ||
<div class="friend-box"> | ||
<img class="friend-avatar" src="<%= friend.siteLogo %>"> | ||
<div class="flink-info"> | ||
<a href="<%= friend.siteLink %>" target="_blank"> | ||
<%= friend.siteName %> | ||
</a> | ||
<br /> | ||
<%= friend.description %> | ||
<div class="main"> | ||
<div class="container"> | ||
<article class="post-wrap"> | ||
<header class="post-header"> | ||
<h1 class="post-title zh"> | ||
友链 | ||
</h1> | ||
<h1 class="post-title en"> | ||
Friends | ||
</h1> | ||
</header> | ||
<div class="post-content"> | ||
<% if (site.customConfig.friends) { %> | ||
<% site.customConfig.friends.forEach(function(friend) { %> | ||
<div class="friend-box"> | ||
<img class="friend-avatar" src="<%= friend.siteLogo %>"> | ||
<div class="flink-info"> | ||
<a href="<%= friend.siteLink %>" target="_blank"> | ||
<%= friend.siteName %> | ||
</a> | ||
<br /> | ||
<%= friend.description %> | ||
</div> | ||
</div> | ||
<% }); %> | ||
<% } %> | ||
</div> | ||
</div> | ||
<% }); %> | ||
<% } %> | ||
</article> | ||
</div> | ||
</article> | ||
</div> | ||
</div> | ||
<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %> | ||
<% if (commentSetting.commentPlatform === 'gitalk') { %> | ||
<%- include('./include/gitalk') %> | ||
<% } %> | ||
<% if (commentSetting.commentPlatform === 'disqus') { %> | ||
<%- include('./include/disqus') %> | ||
<% } %> | ||
<% } %> | ||
</div> | ||
<% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %> | ||
<% if (commentSetting.commentPlatform === 'gitalk') { %> | ||
<%- include('./include/gitalk') %> | ||
<% } %> | ||
<% if (commentSetting.commentPlatform === 'disqus') { %> | ||
<%- include('./include/disqus') %> | ||
<% } %> | ||
<% } %> | ||
</div> | ||
<%- include('./include/footer') %> | ||
</body> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<% site.posts.forEach(function(post) { %> | ||
<% if(!post.hideInList){%> | ||
<%if(post.isTop){ %> | ||
<section class="post-item"> | ||
<div class="content"> | ||
<a href="<%= post.link %>"> | ||
<h2 class="post-title"> | ||
<%= post.title %> | ||
</h2> | ||
</a> | ||
<div class="post-abstract"> | ||
<%- post.abstract %> | ||
</div> | ||
<div class="post-info"> | ||
<span><i class="fa fa-calendar" aria-hidden="true"></i> <%= post.dateFormat %></span> | ||
<% if (post.tags.length > 0) { %><span><i class="fa fa-tags" | ||
aria-hidden="true"></i><% post.tags.forEach(function(tag, index) { %><a | ||
href="<%= tag.link %>"><%= tag.name %><% if (index !== post.tags.length - 1) { %>,<% } %></a><% }); %></span> | ||
<% } %> | ||
</div> | ||
</div> | ||
<% if (themeConfig.showFeatureImage && post.feature) { %> | ||
<a href="<%= post.link %>"> | ||
<div class="feature-container" style="background-image: url('<%= post.feature %>')"> | ||
</div> | ||
</a> | ||
<% } %> | ||
</section> | ||
<% } %> | ||
<% } %> | ||
<% }); %> | ||
<% site.posts.forEach(function(post) { %> | ||
<% if(!post.hideInList){%> | ||
<section class="post-item"> | ||
<div class="content"> | ||
<a href="<%= post.link %>"> | ||
<h2 class="post-title"> | ||
<%= post.title %> | ||
</h2> | ||
</a> | ||
<div class="post-abstract"> | ||
<%- post.abstract %> | ||
</div> | ||
<div class="post-info"> | ||
<span><i class="fa fa-calendar" aria-hidden="true"></i> <%= post.dateFormat %></span> | ||
<% if (post.tags.length > 0) { %> | ||
<span> | ||
<i class="fa fa-tags" aria-hidden="true"></i> | ||
<% post.tags.forEach(function(tag, index) { %> | ||
<a href="<%= tag.link %>"> | ||
<%= tag.name %> | ||
<% if (index !== post.tags.length - 1) { %> | ||
, | ||
<% } %> | ||
</a> | ||
<% }); %> | ||
</span> | ||
<% } %> | ||
</div> | ||
</div> | ||
<% if (themeConfig.showFeatureImage && post.feature) { %> | ||
<a href="<%= post.link %>"> | ||
<div class="feature-container" style="background-image: url('<%= post.feature %>')"> | ||
</div> | ||
</a> | ||
<% } %> | ||
</section> | ||
<% } %> | ||
<% }); %> |
Oops, something went wrong.