-
Notifications
You must be signed in to change notification settings - Fork 24
/
tag.hbs
executable file
·73 lines (63 loc) · 2.17 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{{> head}}
<main class="main main--grid {{#checkIfNone @config.custom.sidebar}}main--full{{/checkIfNone}}">
<div class="page-header page-header--listing">
{{#tag}}
<h1 class="page-header__title">
{{name}}
<sup>({{postsNumber}})</sup>
</h1>
{{#if description}}
<p class="page-header__desc">
{{description}}
</p>
{{/if}}
{{/tag}}
</div>{{!-- .page-header --}}
{{#each posts}}
<article class="article">
{{#featuredImage}}
{{#if url}}
<a href="{{../url}}">
<img
src="{{url}}"
sizes="{{sizes.listing}}"
srcset="{{srcset.listing}}"
alt="{{alt}}">
</a>
{{/if}}
{{/featuredImage}}
<header>
<h2 class="article__title">
<a href="{{url}}">{{title}}</a>
</h2>
{{#if hasCustomExcerpt}}
{{{ excerpt }}}
{{else}}
<p>{{{ excerpt }}}</p>
{{/if}}
<p class="article__meta u-small">
{{#author}}
<a href="{{url}}" title="{{name}}">
{{#if avatar}}
<img src="{{avatar}}" class="article__meta__avatar" alt="{{name}}">
{{/if}}
{{name}}
</a>
{{/author}}
<time datetime="{{date createdAt 'YYYY-MM-DDTHH:mm'}}">
{{#checkIf @config.custom.formatDate '!=' 'custom'}}
{{date createdAt @config.custom.formatDate}}
{{else}}
{{date createdAt @config.custom.formatDateCustom}}
{{/checkIf}}
</time>
</p>
</header>
</article>
{{/each}}
{{> pagination}}
</main>
{{#if @config.custom.sidebar}}
{{> sidebar}}
{{/if}}
{{> footer}}