13 |
14 |
23 |
24 | <% let years = []; posts.forEach((item) => {
25 | const year = item.date.substring(0, 4);
26 | if (!years.includes(year)) {
27 | years.push(year);
28 | }
29 | }); %>
30 |
31 | <% years.forEach(function(year) { %>
32 |
33 |
34 |
35 |
62 |
63 |
64 | <% }); %>
65 |
66 |
评论
4 | <% if (typeof commentSetting !== 'undefined' && commentSetting.showComment) { %> 5 | <% if (commentSetting.commentPlatform === 'gitalk') { %> 6 | 7 | <% } %> 8 | 9 | <% if (commentSetting.commentPlatform === 'disqus') { %> 10 | 11 | <% } %> 12 | <% } %> 13 |