Global templates and 404

This commit is contained in:
John O'Nolan 2019-11-08 18:04:38 +07:00
parent 5e970154fa
commit 9fac3beb29
10 changed files with 149 additions and 152 deletions

43
tag.hbs
View file

@ -1,25 +1,28 @@
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{#tag}}
<header class="page-head">
<h1 class="page-head-title">{{name}}</h1>
<p class="page-head-description">
{{#if description}}
{{description}}
{{else}}
A collection of {{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}
{{/if}}
</p>
</header>
{{/tag}}
<div class="gh-page">
<div class="gh-container">
<div class="post-feed">
{{#foreach posts}}
{{#tag}}
<header class="page-head">
<h1 class="page-head-title">{{name}}</h1>
<p class="page-head-description">
{{#if description}}
{{description}}
{{else}}
A collection of {{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}
{{/if}}
</p>
</header>
{{/tag}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
<div class="post-feed">
{{#foreach posts}}
{{/foreach}}
</div>
{{> "post-card"}} {{!-- partials/post-card.hbs --}}
{{/foreach}}
</div>
</div>
</div>