-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtag.hbs
38 lines (35 loc) · 998 Bytes
/
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
{{!< default}}
{{^is "paged"}}
<div class="tag__header">
<h1>{{tag.name}}<br><span> A {{pagination.total}}-post collection</span></h1>
</div>
<div class="tag__description">
<p>
{{#if tag.description}}
{{tag.description}}
{{/if}}
</p>
</div>
{{/is}}
<main class="content" role="main">
{{#foreach posts}}
<article class="{{post_class}} list">
<h1 class="post__title"><a href="{{url}}">{{{title}}}</a></h1>
<section class="post__meta">
<p>Posted on <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>
</section>
<section class="post__excerpt">
<p>{{excerpt words="35"}} <br>
<a class="read-more" href="{{url}}">Read More ›</a> </p>
</section>
</article>
<hr>
{{/foreach}}
{{#if pagination.prev}}
{{pagination}}
{{else}}
{{#if pagination.next}}
{{pagination}}
{{/if}}
{{/if}}
</main>