-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtag-inline-content.hbs
More file actions
82 lines (68 loc) · 2.97 KB
/
tag-inline-content.hbs
File metadata and controls
82 lines (68 loc) · 2.97 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{{!< default}}
{{#tag}}
{{#if feature_image}}
<header class="site-heading" style="background-image:url('{{img_url feature_image size="xl"}}')">
<div class="overlay"></div>
{{else}}
<header class="site-heading bg-alternative">
{{/if}}
<div class="container">
<div class="row align-items-center">
<div class="site-heading-content col-lg-8 text-center text-lg-start mb-4 mb-lg-0">
<h1 class="fw-bold">{{name}}</h1>
<p class="lead mb-0">
{{#if description}}
{{description}}
{{else}}
A collection of {{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}
{{/if}}
</p>
</div>
</div>
</div>
</header>
{{/tag}}
<div class="container my-5">
{{#foreach posts}}
<article class="mb-5">
<div class="row">
<div class="col-lg-3 col-xl-2 col-md-12 text-secondary pt-1 pb-3 small">
{{date format="MMM D, YYYY"}}
</div>
<div class="col-lg-9 col-xl-10 col-md-12 pb-4">
{{#if feature_image}}
<img class="mb-4 img-responsive rounded" 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) 1000px, 2000px" loading="lazy"
src="{{img_url feature_image size="xl"}}" alt="{{title}}" />
{{/if}}
<a href="{{url}}" class="text-reset">
<h2 class="h3">
{{title}}
</h2>
</a>
{{#if custom_excerpt}}
<p class="small text-secondary">{{custom_excerpt}}</p>
{{/if}}
<div class="gh-canvas no-grid">
{{content}}
</div>
<div class="mt-4 small d-flex flex-wrap">
<a href="{{url}}" class="pe-3 d-flex align-items-center">
{{> "icons/link"}}
<span class="ps-1">Permalink</span>
</a>
<a class="d-flex align-items-center"
href="https://twitter.com/share?text={{encode title}}&url={{encode url absolute='true'}}">
{{> "icons/twitter"}}
<span class="ps-1">Share</span>
</a>
</div>
</div>
</div>
<hr />
</article>
{{/foreach}}
</div>