forked from mityalebedev/The-Shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tags.hbs
45 lines (35 loc) · 1.33 KB
/
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
{{!< default}}
<article class="{{post_class}}">
{{> "post-header"}}
</article>
{{!-- tag cards --}}
{{#get "tags" limit="all"}}
<main class="content" role="main">
{{#foreach tags}}
<article class="item {{post_class}}">
<div class="post-card">
<section class="post-featured-image">
<a href="{{url}}"><span class="aspect-ratio-square rotate-45">
{{#if feature_image}}
<img src="{{img_url feature_image}}" alt="{{title}}" />
{{else}}{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{title}}" />
{{/if}}{{/if}}
</span></a>
</section>
<section class="tag-info">
<h3><a href="{{url}}">{{{name}}}</a></h3>
{{#if description}}
<p>{{description}}</p>
{{else}}
<p>Posts about <i>{{name}}</i> stuff…</p>
{{/if}}
{{#get "posts" filter="tags:{{slug}}"}}
<div class="tag-post-count">{{plural pagination.total empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}}</div>
{{/get}}
</section>
</div>
</article>
{{/foreach}}
</main>
{{/get}}