forked from GavickPro/Perfetta-Free-Ghost-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
52 lines (43 loc) · 1.58 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{{!< default}}
{{! The main content area on the homepage }}
<main class="page-wrap" role="main">
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}}" data-scroll-reveal="enter bottom">
<div>
<header class="post-header">
{{content words="0"}}
<h2 class="post-title">
<a href="{{url}}"><span>{{{title}}}</span></a>
</h2>
</header>
<section class="post-excerpt">
<p>{{excerpt}}…</p>
<a href="{{url}}" class="post-readmore">Read more</a>
</section>
</div>
<aside class="post-meta" data-scroll-reveal="enter left and move 30px after .3s">
<time datetime="{{date format='YYYY-MM-DD'}}">
{{date format="MMM DD"}}
<span>{{date format="YYYY"}}</span>
</time>
<dl>
<dt class="item-author">by</dt>
<dd>{{author}}</dd>
{{#if tags}}
<dt class="item-tags">tagged as:</dt>
<dd>
<ul>
{{#foreach tags}}
<li><a href="{{url}}">{{name}}</a>{{#if @last}} {{else}}, {{/if}}</li>
{{/foreach}}
</ul>
</dd>
{{/if}}
</dl>
</aside>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
{{pagination}}
</main>