This repository has been archived by the owner on Mar 9, 2022. It is now read-only.
forked from TryGhost/Massively
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tag.hbs
47 lines (40 loc) · 1.37 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
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- Main --}}
<main id="main">
{{!-- 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 class="posts">
{{#foreach posts}}
<article>
<header>
<span class="date">{{date format="MMM D, YYYY"}}</span>
<h2><a href="{{url}}">{{title}}</a></h2>
</header>
{{#if feature_image}}
<a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
{{/if}}
<p>{{excerpt words="33"}}</p>
<ul class="actions special">
<li><a href="{{url}}" class="button">{{t "Full Story"}}</a></li>
</ul>
</article>
{{/foreach}}
</section>
{{!-- Pagination --}}
{{pagination}}
</main>