-
Notifications
You must be signed in to change notification settings - Fork 2
/
tag.hbs
40 lines (34 loc) · 1.23 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
{{!-- Include the header from partials/header.hbs --}}
{{> header}}
{{!-- Switch to the tag context --}}
{{#tag}}
{{!-- Show the cover photo --}}
<header class="cover" {{#if cover}}style="background-image: url('{{img cover}}');"{{/if}}>
<div class="content">
<h1 class="title">{{name}}</h1>
</div>
</header>
{{/tag}}
<div class="container">
<div class="row">
<div class="col-md-8 push-md-2 col-sm-10 push-sm-1 col-12">
<div class="tag">
{{!-- Switch to the tag context --}}
{{#tag}}
{{!-- Description --}}
<div class="description">{{description}}</div>
{{!-- Post count --}}
<div class="post-count">
{{plural ../pagination.total_items none="No posts" singular="One post" plural="% posts"}}
</div>
{{/tag}}
</div>
{{!-- Include the post loop from partials/loop.hbs --}}
{{> loop}}
{{!-- Include pagination from partials/pagination.hbs --}}
{{> pagination}}
</div>
</div>
</div>
{{!-- Include the footer from partials/footer.hbs --}}
{{> footer}}