blog/templates/index.html
2020-11-10 18:32:40 +00:00

56 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
{{>head title=site.title summary=site.description}}
<body>
{{> header }}
<div class="container">
<div class="home">
<ul class="post-list">
{{#each pagination.files }}
<li>
<article class="post">
<h2 class="post-title">
<a class="post-link" href="/{{ this.path }}">{{ this.title }}</a>
</h2>
<div class="post-meta feather_type">
<span>
<time datetime="{{moment this.date 'YYYY-MM-DD' }}">
{{moment this.date 'dddd, Do MMMM YYYY' }}
</time>
</span>
</div>
<div class="post-preview">
{{{ markdown this.summary }}}
<a class="full-post-link" href="/{{ this.path }}">Continue reading...</a>
</div>
</article>
</li>
{{/each}}
</ul>
<div class="pagination">
{{#if pagination.previous}}
<a href="/{{pagination.previous.path}}">&larr; Newer Posts</a>
{{#if pagination.next}}
|
{{/if}}
{{/if}}
{{#if pagination.next}}
<a href="/{{pagination.next.path}}">Older Posts &rarr;</a>
{{/if}}
</div>
</div>
{{> footer }}
</div>
</body>
</html>