Refactor global layout

This commit is contained in:
John O'Nolan 2019-11-05 17:17:19 +07:00
parent f3d9c582be
commit 20f98afdbe
6 changed files with 61 additions and 75 deletions

View file

@ -1,21 +1,22 @@
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{#is "home"}}
{{#if @site.description}}
<header class="page-head">
<h2 class="page-head-title">{{@site.description}}</h2>
</header>
{{/if}}
{{/is}}
<div class="gh-container">
<div class="post-feed">
{{#foreach posts}}
{{#is "home"}}
{{#if @site.description}}
<header class="page-head">
<h2 class="page-head-title">{{@site.description}}</h2>
</header>
{{/if}}
{{/is}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
<div class="post-feed">
{{#foreach posts}}
{{> "post-card"}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{/foreach}}
</div>
{{/foreach}}
</div>