39 lines
1.4 KiB
Handlebars
39 lines
1.4 KiB
Handlebars
{{!< default}}
|
|
|
|
{{! The comment above "< default" means - insert everything in this file into
|
|
the {body} of the default.hbs template, which contains our header/footer. }}
|
|
|
|
{{! The big featured header on the homepage, with the site logo and description }}
|
|
<header id="site-head">
|
|
<div class="vertical">
|
|
<div id="site-head-content" class="inner">
|
|
{{#if settings.logo}}<a id="blog-logo" href="{{settings.url}}"><img src="{{settings.logo}}" alt="Blog Logo" /></a>{{/if}}
|
|
<h1 class="blog-title">{{settings.title}}</h1>
|
|
<h2 class="blog-description">{{settings.description}}</h2>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
{{! The main content area on the homepage }}
|
|
<main class="content" role="main">
|
|
|
|
{{! Each post will be output using this markup }}
|
|
{{#foreach posts}}
|
|
|
|
<article class="{{post_class}}">
|
|
<header class="post-header">
|
|
<span class="post-meta"><time datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="DD MMM YYYY"}}</time> {{#if tags}}on {{tags}}{{/if}}</span>
|
|
<h2 class="post-title"><a href="/{{slug}}">{{title}}</a></h2>
|
|
|
|
</header>
|
|
<section class="post-excerpt">
|
|
<p>{{excerpt}}…</p>
|
|
</section>
|
|
</article>
|
|
|
|
{{/foreach}}
|
|
|
|
{{!! After all the posts, we have the previous/next pagination links }}
|
|
{{pagination}}
|
|
|
|
</main> |