-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.hbs
51 lines (43 loc) · 1.45 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
48
49
50
51
{{!< default}}
<header class="blog-header{{#if tag.feature_image}} has-cover{{else}}{{#if @site.cover_image}} has-cover{{/if}}{{/if}}">
<div class="inner">
<div class="archive archive-tag box archive-box">
<span class="archive-info">
<span class="archive-type">{{t "Topic"}}</span>
<span class="archive-count">{{pagination.total}} {{t "Posts"}}</span>
</span>
<h2 class="archive-title">{{tag.name}}</h2>
{{#if tag.description}}
<span class="archive-description">{{{tag.description}}}</span>
{{/if}}
</div>
{{#if tag.feature_image}}
<div class="blog-cover cover">
<img
srcset="{{img_url tag.feature_image size="s"}} 320w,
{{img_url tag.feature_image size="m"}} 640w,
{{img_url tag.feature_image size="l"}} 960w,
{{img_url tag.feature_image size="xl"}} 1920w"
src="{{img_url tag.feature_image size="xl"}}"
alt="{{@site.title}}" />
</div>
{{else}}
{{#if @site.cover_image}}
<div class="blog-cover cover">
<img
srcset="{{img_url @site.cover_image size="s"}} 320w,
{{img_url @site.cover_image size="m"}} 640w,
{{img_url @site.cover_image size="l"}} 960w,
{{img_url @site.cover_image size="xl"}} 1920w"
src="{{img_url @site.cover_image size="xl"}}"
alt="{{@site.title}}" />
</div>
{{/if}}
{{/if}}
</div>
</header>
<div id="index" class="container">
<main class="content" role="main">
{{> "loop"}}
</main>
</div>