2 |
3 | <% if (post.layout != 'page'){ %>
4 |
5 | <%- partial('post/date', { date_format: config.date_format }) %>
6 | <% } %>
7 | <%- partial('post/title') %>
8 |
9 | <% if (post.photos && post.photos.length > 0){ %>
10 | <%- partial('post/gallery') %>
11 | <% } %>
12 |
13 | <% if (post.excerpt && index){ %>
14 | <%- post.excerpt %>
15 | <% } else { %>
16 | <%- post.content %>
17 | <% } %>
18 |
19 |
37 |
38 |
39 | <%- partial('comment') %>
--------------------------------------------------------------------------------
/hexo/themes/modernist/layout/_partial/comment.ejs:
--------------------------------------------------------------------------------
1 | <% if (config.disqus_shortname && page.comments){ %>
2 |
8 | <% } else if (theme.duoshuo_shortname && page.comments){ %>
9 |
14 | <% } %>
--------------------------------------------------------------------------------
/hexo/themes/modernist/layout/_partial/footer.ejs:
--------------------------------------------------------------------------------
1 |
3 | <%- list_categories(post.categories, {
4 | show_count: false,
5 | class: 'categories',
6 | style: 'none'
7 | }) %>
8 |
9 | <% } %>
--------------------------------------------------------------------------------
/hexo/themes/modernist/layout/_partial/post/date.ejs:
--------------------------------------------------------------------------------
1 |
3 | <%- list_tags(post.tags, {
4 | show_count: false,
5 | style: 'none',
6 | class: 'tags'
7 | }) %>
8 |
9 | <% } %>
--------------------------------------------------------------------------------
/hexo/themes/modernist/layout/_partial/post/title.ejs:
--------------------------------------------------------------------------------
1 | <% if (post.link){ %>
2 |