-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.hbs
47 lines (42 loc) · 1.51 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 --}}
{{#tag}}
<header class="site-archive-header">
{{> site-header}}
{{> header-background background=feature_image}} {{!--Special header-image.hbs partial to generate the background image--}}
<div class="inner site-header-content">
<h1 class="site-title">{{name}}:: {{@slug}}</h1>
<h2 class="site-description">
{{#if description}}
{{description}}
{{else}}
A collection of {{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}
{{/if}}
</h2>
</div>
</div>
</header>
{{/tag}}
{{!-- The main content area --}}
<main id="site-main" class="site-main outer">
<div class="inner posts">
<div class="post-feed">
{{!-- loop through all featured posts with this tag --}}
{{#foreach posts}}
{{#if featured}}
{{^has tag="#notag"}}
{{> "post-card"}}
{{/has}}
{{/if}}
{{/foreach}}
{{!-- loop through none featured posts with this tag --}}
{{#foreach posts}}
{{^if featured}}
{{^has tag="#notag"}}
{{> "post-card"}}
{{/has}}
{{/if}}
{{/foreach}}
</div>
</div>
</main>