Add tag & author archives

This commit is contained in:
John O'Nolan 2019-11-19 19:07:22 +07:00
parent 5598592cfd
commit c38822e257
5 changed files with 109 additions and 20 deletions

15
tag.hbs
View file

@ -4,19 +4,26 @@
<div class="gh-container">
{{#tag}}
<header class="page-head">
<h1 class="page-head-title">{{name}}</h1>
<p class="page-head-description">
<header class="gh-page-head">
<h1>{{name}}</h1>
<p>
{{#if description}}
{{description}}
{{else}}
A collection of {{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}
{{/if}}
</p>
{{#if feature_image}}
<img class="gh-page-image" src="{{feature_image}}" alt="{{name}}" />
{{/if}}
</header>
{{/tag}}
<div class="post-feed">
<div class="gh-postfeed">
{{#foreach posts}}
{{> "card"}} {{!-- partials/card.hbs --}}