-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-tags.hbs
61 lines (57 loc) · 1.71 KB
/
page-tags.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
{{!--
This template is used for the tags page.
--}}
{{!-- This block preloads specific assets for the tags page --}}
{{#contentFor "preload"}}
<link rel="preload" href="{{asset "css/collection.css"}}" as="style" />
{{/contentFor}}
{{!-- This block loads specific styles for the tags page --}}
{{#contentFor "styles"}}
<link
rel="stylesheet"
type="text/css"
href="{{asset "css/collection.css"}}"
media="screen"
/>
{{/contentFor}}
{{!-- The tag below means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!< default}}
<div class="f-main-container">
{{> header}}
<div class="f-standard-container in-collection">
<main class="f-standard-wrapper" role="main">
{{!-- Everything inside the #post tags pulls data from the page --}}
{{#post}}
{{>
collection-header
title=title
description=custom_excerpt
collection_image=feature_image
}}
{{/post}}
{{#get 'tags' limit='all' include='count.posts'}}
<div class="f-collection-grid">
{{#foreach tags}}
{{>
collection-item
url=url
item_image=feature_image
default_image=(asset "images/tag.svg")
title=name
label=(t "{label} articles'" label=name)
}}
{{else}}
{{>
empty-content
extra_class="in-collection"
title=(t "No tags were found")
description=(t "Apparently there are no tags at the moment, please check again later.")
}}
{{/foreach}}
</div>
{{/get}}
</main>
</div>
{{> blob-shape alt_version="true"}}
</div>