casper/index.hbs

44 lines
1.7 KiB
Handlebars
Raw Normal View History

{{!< default}}
2013-08-20 16:53:02 +00:00
{{! 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 class="main-header {{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}">
<nav class="main-nav overlay clearfix">
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
</nav>
2013-08-28 12:01:39 +00:00
<div class="vertical">
<div class="main-header-content inner">
<h1 class="page-title">{{@blog.title}}</h1>
<h2 class="page-description">{{@blog.description}}</h2>
2013-08-28 12:01:39 +00:00
</div>
2013-08-20 16:53:02 +00:00
</div>
</header>
{{! The main content area on the homepage }}
2013-08-10 13:06:01 +00:00
<main class="content" role="main">
{{! Previous/next page links - only displayed on page 2+ }}
<div class="extra-pagination inner">
{{pagination}}
</div>
{{! Each post will be output using this markup }}
2013-08-20 16:53:02 +00:00
{{#foreach posts}}
<article class="{{post_class}}">
2013-08-20 16:53:02 +00:00
<header class="post-header">
2013-10-27 09:35:42 +00:00
<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>
2013-08-20 16:53:02 +00:00
</header>
<section class="post-excerpt">
<p>{{excerpt}} <a class="read-more" href="{{url}}">&raquo;</a></p>
2013-08-20 16:53:02 +00:00
</section>
</article>
{{/foreach}}
2013-09-09 17:07:19 +00:00
{{! Previous/next page links - only displayed on every page }}
{{pagination}}
2013-08-10 13:06:01 +00:00
</main>