mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-11-14 01:06:32 +00:00
34 lines
1.2 KiB
Handlebars
34 lines
1.2 KiB
Handlebars
{{!< default}}
|
|
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
|
|
|
|
{{!-- The big featured header, it uses blog cover image as a BG if available --}}
|
|
{{#tag}}
|
|
<header class="site-header outer {{#if feature_image}}" style="background-image: url({{feature_image}}){{else}}no-cover{{/if}}">
|
|
<div class="inner">
|
|
{{> "site-nav"}}
|
|
<div class="site-header-content">
|
|
<h1 class="site-title">{{name}}</h1>
|
|
<h2 class="site-description">
|
|
{{#if description}}
|
|
{{description}}
|
|
{{else}}
|
|
A collection of {{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}
|
|
{{/if}}
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{{/tag}}
|
|
|
|
{{!-- The main content area --}}
|
|
<main id="site-main" class="site-main outer">
|
|
<div class="inner">
|
|
<div class="post-feed">
|
|
{{#foreach posts}}
|
|
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
|
|
{{> "post-card"}}
|
|
{{/foreach}}
|
|
</div>
|
|
</div>
|
|
</main>
|