forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
31 lines (21 loc) · 1 KB
/
index.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{{!< default}}
{{! The main content area on the homepage }}
<!-- A wrapper for all the blog posts -->
<main class="posts">
{{! <h1 class="content-subhead">Pinned Post</h1> }}
{{#foreach posts}}
<article class="post {{post_class}}">
<header class="post-header">
<img class="post-avatar" alt="{{author.name}}'s avatar" height="48" width="48" src="{{author.image}}">
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
<p class="post-meta">
By <a href="{{author.website}}" class="post-author">{{author.name}}</a> on <time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> under {{#tags}}<span class="post-category post-category-{{name}}">{{name}}</span> {{/tags}}
</p>
</header>
<section class="post-description">
<p>{{excerpt}}…</p>
</section>
</article>
{{/foreach}}
{{pagination}}
</main>