casper-i18n/author.hbs

39 lines
1.3 KiB
Handlebars
Raw Permalink Normal View History

2014-08-10 10:18:21 +03:00
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
<header class="site-head" {{#if cover}}style="background-image: url({{cover}})"{{/if}}>
<div class="vertical">
<div class="site-head-content inner">
<h1 class="blog-title">{{name}}</h1>
<h2 class="blog-description">{{bio}}</h2>
</div>
</div>
</header>
{{/author}}
{{! 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 format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{tags prefix="on "}}</span>
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header>
<section class="post-excerpt">
<p>{{excerpt}}&hellip; <a class="read-more" href="{{url}}">&raquo;</a></p>
</section>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
</main>