2019-01-04 18:14:53 +00:00
|
|
|
```
|
|
|
|
metadata.title = "Shadowfacts"
|
|
|
|
metadata.layout = "default.html.ejs"
|
|
|
|
```
|
|
|
|
|
|
|
|
<div class="main">
|
|
|
|
<% for (const post of posts) { %>
|
|
|
|
<article itemscope itemtype="https://schema.org/BlogPosting">
|
2019-06-29 22:39:04 +00:00
|
|
|
<h1 class="article-title" itemprop="headline">
|
|
|
|
<a href="<%= post.metadata.permalink %>" itemprop="url mainEntityOfPage">
|
|
|
|
<%= post.metadata.title %>
|
|
|
|
</a>
|
|
|
|
</h1>
|
2019-01-04 18:14:53 +00:00
|
|
|
<%- include("includes/article-meta.html.ejs", { metadata: post.metadata }) %>
|
|
|
|
<div class="article-content" itemprop="description">
|
|
|
|
<%- post.metadata.excerpt %>
|
|
|
|
</div>
|
2019-01-04 22:36:04 +00:00
|
|
|
<p class="read-more-link">
|
|
|
|
<a href="<%= post.metadata.permalink %>">Read more...</a>
|
|
|
|
</p>
|
2019-01-04 18:14:53 +00:00
|
|
|
</article>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
|
2019-01-05 02:44:55 +00:00
|
|
|
<div class="pagination" role="navigation">
|
2019-01-04 18:14:53 +00:00
|
|
|
<p>
|
|
|
|
<span class="pagination-link">
|
|
|
|
<% if (pagination.prevLink) { %>
|
|
|
|
<a href="<%= pagination.prevLink %>">
|
2019-01-05 02:44:55 +00:00
|
|
|
<span class="arrow arrow-left" aria-hidden="true"></span> <span>Previous</span>
|
2019-01-04 18:14:53 +00:00
|
|
|
</a>
|
|
|
|
<% } else { %>
|
2019-01-05 02:44:55 +00:00
|
|
|
<span class="arrow arrow-left" aria-hidden="true"></span> <span>Previous</span>
|
2019-01-04 18:14:53 +00:00
|
|
|
<% } %>
|
|
|
|
</span>
|
|
|
|
Page <%= pagination.current %> of <%= pagination.total %>
|
|
|
|
<span class="pagination-link">
|
|
|
|
<% if (pagination.nextLink) { %>
|
|
|
|
<a href="<%= pagination.nextLink %>">
|
2019-01-05 02:44:55 +00:00
|
|
|
<span>Next</span> <span class="arrow arrow-right" aria-hidden="true"></span>
|
2019-01-04 18:14:53 +00:00
|
|
|
</a>
|
|
|
|
<% } else { %>
|
2019-01-05 02:44:55 +00:00
|
|
|
<span>Next</span> <span class="arrow arrow-right" aria-hidden="true"></span>
|
2019-01-04 18:14:53 +00:00
|
|
|
<% } %>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|