-
Notifications
You must be signed in to change notification settings - Fork 2
/
tag.hbs
42 lines (37 loc) · 1.4 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
{{!< default}}
<div class="wrapper">
<header class="flex flex-wrap items-center mb-10">
{{#tag}}
<article class="w-full md:w-1/2 md:pr-5">
<h1 class="text-5xl font-bold mb-5">{{name}}</h1>
<p>
{{#if description}}
{{description}}
{{else}}
{{plural ../pagination.total empty=(t "A collection of posts") singular=(t "A collection of 1 post") plural=(t "A collection of % posts")}}
{{/if}}
</p>
</article>
{{#if feature_image}}
<img class="w-full pt-10 md:pt-0 md:w-1/2 md:pl-5"
srcset="{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w,
{{img_url feature_image size="l"}} 1000w,
{{img_url feature_image size="xl"}} 2000w"
sizes="(max-width: 1000px) 400px, 800px"
src="{{img_url feature_image size="m"}}"
alt="{{title}}"
loading="lazy"
/>
{{/if}}
{{/tag}}
</header>
<section>
<div class="flex flex-wrap">
{{#foreach posts}}
{{> "post-card"}}
{{/foreach}}
</div>
{{pagination}}
</section>
</div>