-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.hbs
41 lines (36 loc) · 1.16 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
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- Tag info --}}
{{#tag}}
<header class="tag-header">
<h1><a href="{{url}}">{{name}}</a></h1>
{{#if description}}
<p class="content">{{description}}</p>
{{else}}
<p>A collection of {{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}</p>
{{/if}}
{{#if feature_image}}
<a href="{{url}}" class="image main"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
{{/if}}
</header>
{{/tag}}
{{!-- Posts --}}
<section>
<section class="posts">
{{#foreach posts}}
<article>
{{#if feature_image}}
<a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
{{/if}}
<h3><a href="{{url}}">{{title}}</a></h3>
<p>{{excerpt words="33"}}</p>
<ul class="actions special">
<li><a href="{{url}}" class="button">Full Story</a></li>
</ul>
</article>
{{/foreach}}
</section>
</section>
{{!-- Pagination --}}
{{pagination}}