2 |
3 |
4 | <%- partial('post/date', {class_name: 'archive-article-date', date_format: 'MMM D YYYY'}) %>
5 | <%- partial('post/title', {class_name: 'archive-article-title'}) %>
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/layout/_partial/archive.ejs:
--------------------------------------------------------------------------------
1 | <% if (pagination == 2){ %>
2 | <% page.posts.each(function(post){ %>
3 | <%- partial('article', {post: post, index: true}) %>
4 | <% }) %>
5 | <% } else { %>
6 | <% var last; %>
7 | <% page.posts.each(function(post, i){ %>
8 | <% var year = post.date.year(); %>
9 | <% if (last != year){ %>
10 | <% if (last != null){ %>
11 |
12 | <% } %>
13 | <% last = year; %>
14 |
2 | <%- partial('_partial/header', {}, { cache: true }) %>
3 |
4 |
5 | <%- partial('post/gallery') %>
6 | <% if (post.link || post.title){ %>
7 |
8 | <%- partial('post/title', {class_name: 'p-name article-title'}) %>
9 |
10 | <% } %>
11 |
12 | <% if (post.excerpt && index){ %>
13 | <%- post.excerpt %>
14 | <% if (theme.excerpt_link){ %>
15 |
16 | <%= theme.excerpt_link %>
17 |
18 | <% } %>
19 | <% } else { %>
20 | <%- post.content %>
21 | <% } %>
22 | <% if (theme.donate.enable){ %>
23 |
24 |
25 |
Donate
26 |
27 | - PayPal
28 |
29 | - AliPay
30 | - WeChat
31 |
32 |
37 |
38 |
39 |
40 | <% } %>
41 |
42 |
63 |
64 | <% if (!index){ %>
65 | <%- partial('post/nav') %>
66 | <% } %>
67 |
68 |
69 | <% if (!index && post.comments && theme.gitment.owner && theme.gitment.repo && theme.gitment.client.id && theme.gitment.client.secret){ %>
70 |
73 | <% } %>
74 |
75 | <% if(!index && post.comments && theme.utterances.enable && theme.utterances.repo){ %>
76 |
79 | <% } %>
80 |
81 | <% if (!index && post.comments && config.disqus_shortname){ %>
82 |
87 | <% } %>
88 |
89 | <% if(!index && post.comments && theme.valine.enable && theme.valine.appId && theme.valine.appKey){ %>
90 |
93 | <% } %>
94 |
--------------------------------------------------------------------------------
/layout/_partial/baidu_tongji.ejs:
--------------------------------------------------------------------------------
1 | <% if (theme.baidu_tongji) { %>
2 |
11 | <% } %>
12 |
--------------------------------------------------------------------------------
/layout/_partial/footer.ejs:
--------------------------------------------------------------------------------
1 | <% if (is_home()) { %>
2 |