weflock/index.hbs

38 lines
1.4 KiB
Handlebars
Raw Normal View History

{{!< default}}
2013-08-20 12:53:02 -04: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 }}
2013-10-31 14:07:10 -04:00
<header class="site-head" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
2013-08-28 08:01:39 -04:00
<div class="vertical">
<div class="site-head-content inner">
2013-10-31 14:07:10 -04:00
{{#if @blog.logo}}<a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>{{/if}}
<h1 class="blog-title">{{@blog.title}}</h1>
<h2 class="blog-description">{{@blog.description}}</h2>
2013-08-28 08:01:39 -04:00
</div>
2013-08-20 12:53:02 -04:00
</div>
</header>
{{! The main content area on the homepage }}
2013-08-10 09:06:01 -04:00
<main class="content" role="main">
{{! Each post will be output using this markup }}
2013-08-20 12:53:02 -04:00
{{#foreach posts}}
<article class="{{post_class}}">
2013-08-20 12:53:02 -04:00
<header class="post-header">
2013-10-27 05:35:42 -04: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 12:53:02 -04:00
</header>
<section class="post-excerpt">
2014-03-22 10:15:41 -04:00
<p>{{excerpt}}&hellip; <a class="read-more" href="{{url}}">&raquo;</a></p>
2013-08-20 12:53:02 -04:00
</section>
</article>
2013-08-10 09:06:01 -04:00
2013-08-20 12:53:02 -04:00
{{/foreach}}
2013-09-09 13:07:19 -04:00
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
2013-08-10 09:06:01 -04:00
</main>