Added tag page
[editorial.git] / tag.hbs
1 {{!< default}}
2 {{!-- The tag above means: insert everything in this file
3 into the {body} of the default.hbs template --}}
4
5 {{!-- Tag info --}}
6 {{#tag}}
7 <header class="tag-header">
8 <h1><a href="{{url}}">{{name}}</a></h1>
9 {{#if description}}
10 <p class="content">{{description}}</p>
11 {{else}}
12 <p>A collection of {{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}</p>
13 {{/if}}
14 {{#if feature_image}}
15 <a href="{{url}}" class="image main"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
16 {{/if}}
17 </header>
18 {{/tag}}
19
20 {{!-- Posts --}}
21 <section>
22
23 <section class="posts">
24 {{#foreach posts}}
25 <article>
26 {{#if feature_image}}
27 <a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
28 {{/if}}
29 <h3><a href="{{url}}">{{title}}</a></h3>
30 <p>{{excerpt words="33"}}</p>
31 <ul class="actions special">
32 <li><a href="{{url}}" class="button">Full Story</a></li>
33 </ul>
34 </article>
35 {{/foreach}}
36 </section>
37
38 </section>
39
40 {{!-- Pagination --}}
41 {{pagination}}