33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
<div class="home-content-container fade-in-down-animation">
|
|
<ul class="home-article-list">
|
|
<% page.posts.forEach(post => { %>
|
|
<li class="home-article-item">
|
|
|
|
<% if (post.sticky) { %>
|
|
<i class="fas fa-thumbtack top-icon"></i>
|
|
<% } %>
|
|
|
|
<h3 class="home-article-title">
|
|
<a href="<%- url_for(post.path) %>">
|
|
<%= post.title %>
|
|
</a>
|
|
</h3>
|
|
|
|
<div class="home-article-content markdown-body">
|
|
<% if (post.excerpt) { %>
|
|
<%- post.excerpt %>
|
|
<% } else { %>
|
|
<%- truncate(strip_html(post.content), {length: 168}) %>
|
|
<% } %>
|
|
</div>
|
|
|
|
<%- partial('_partial/home-article-meta-info', {post: post}) %>
|
|
</li>
|
|
<% }) %>
|
|
</ul>
|
|
|
|
<div class="home-paginator">
|
|
<%- partial('_partial/paginator', {pageObject: page}) %>
|
|
</div>
|
|
</div>
|