-
Notifications
You must be signed in to change notification settings - Fork 26
/
tag.hbs
executable file
·59 lines (49 loc) · 1.79 KB
/
tag.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
53
54
55
56
57
58
59
{{!< default}}
{{! The main content area on the homepage }}
<main class="page-wrap tag-page" role="main">
<h2 class="page-title">
{{tag.name}}
<small>A {{pagination.total}}-post collection</small>
</h2>
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="{{post_class}}" data-scroll-reveal="enter bottom">
<div>
<header class="post-header">
{{#if image}}
<img src="{{image}}" alt="{{{title}}}" />
{{/if}}
<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>