blog/templates/index.html
Marcus Noble 8acfafab45
Updated index title
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-05-29 17:12:18 +01:00

53 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
{{>head title="Blog" summary=site.description}}
<body>
{{> header }}
<div class="container">
<div class="home">
{{#each pagination.files }}
<section 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>
{{{ markdown this.summary }}}
<a href="/{{ this.path }}/"><small>Continue reading...</small></a>
</div>
<hr/>
</section>
{{/each}}
<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>