-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
executable file
·33 lines (22 loc) · 979 Bytes
/
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
32
33
{{!< 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 main content area on the homepage }}
<main class="content" role="main">
<div class="post-list">
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}}">
<header class="post-header">
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
</header>
<section class="post-content">
<p>{{content}}</p>
</section>
<span class="post-meta">by {{author}} on <time datetime="{{date format='YYYY/MM/DD'}}">{{date format="YYYY/MM/DD"}}</time></span>
</article>
{{/foreach}}
</div>
{{!! After all the posts, we have the previous/next pagination links }}
{{!!pagination}}
</main>