2020-04-29 18:46:33 +08:00
|
|
|
<div class="home-content-container fade-in-down-animation">
|
2020-04-01 15:28:01 +08:00
|
|
|
<ul class="home-article-list">
|
|
|
|
<% page.posts.forEach(post => { %>
|
|
|
|
<li class="home-article-item">
|
2020-04-24 22:49:10 +08:00
|
|
|
|
2020-11-19 11:58:54 +08:00
|
|
|
<% if (post.sticky) { %>
|
2020-11-24 10:55:24 +08:00
|
|
|
<i class="fas fa-thumbtack top-icon"></i>
|
2020-10-28 00:20:32 +08:00
|
|
|
<% } %>
|
|
|
|
|
2020-04-01 16:41:30 +08:00
|
|
|
<h3 class="home-article-title">
|
2020-04-24 22:49:10 +08:00
|
|
|
<a href="<%- url_for(post.path) %>">
|
2020-04-29 10:44:47 +08:00
|
|
|
<%= post.title %>
|
2020-04-13 18:27:16 +08:00
|
|
|
</a>
|
2020-04-01 16:41:30 +08:00
|
|
|
</h3>
|
2020-04-01 10:14:18 +08:00
|
|
|
|
2020-04-03 18:18:42 +08:00
|
|
|
<div class="home-article-content markdown-body">
|
2020-04-01 16:41:30 +08:00
|
|
|
<% if (post.excerpt) { %>
|
|
|
|
<%- post.excerpt %>
|
|
|
|
<% } else { %>
|
2020-11-27 11:19:34 +08:00
|
|
|
<%- truncate(strip_html(post.content), {length: 128}) %>
|
2020-04-01 16:41:30 +08:00
|
|
|
<% } %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</div>
|
|
|
|
|
2020-11-19 14:49:19 +08:00
|
|
|
<%- partial('_partial/home-article-meta-info', {post: post}) %>
|
2020-04-01 15:28:01 +08:00
|
|
|
</li>
|
|
|
|
<% }) %>
|
|
|
|
</ul>
|
|
|
|
|
2020-09-02 13:11:09 +08:00
|
|
|
<div class="home-paginator">
|
|
|
|
<%- partial('_partial/paginator', {pageObject: page}) %>
|
2020-04-01 10:14:18 +08:00
|
|
|
</div>
|
2020-04-01 15:28:01 +08:00
|
|
|
</div>
|