-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-tags.hbs
39 lines (35 loc) · 1.32 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
{{!< default}}
{{#post}}
{{#get "tags" limit="all" include="count.posts" order="count.posts desc"}}
<header class="blog-header">
<div class="inner">
<div class="archive archive-tag box archive-box">
<h2 class="archive-title">{{t "Topics"}}</h2>
<span class="archive-description">{{plural pagination.total empty=(t "No topics") singular=(t "% topics total") plural=(t "% topics total")}}</span>
</div>
</div>
</header>
<main class="content" role="main">
<article class="{{post_class}}">
<div class="inner">
<section class="post-content tags">
{{#if tags}}
{{#foreach tags}}
<a class="tag-item" href="{{ url }}"
{{#if accent_color}} data-accent-color="{{ accent_color }}" {{/if}}
style="--tag-accent-color: {{#if accent_color}} {{ accent_color }}; {{else}} var(--ghost-accent-color); {{/if}}">
<div class="tag-title"><span>{{ name }}</span></div>
<div class="tag-post-count">
{{plural count.posts empty=(t "No Posts") singular=(t "<strong>%</strong> Post") plural=(t "<strong>%</strong> Posts")}}
</div>
</a>
{{/foreach}}
{{else}}
<p>{{t "No topics on this site!"}}</p>
{{/if}}
</section>
</div>
</article>
</main>
{{/get}}
{{/post}}