-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag-alternative.hbs
105 lines (105 loc) · 4.49 KB
/
tag-alternative.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{{> head}}
<body>
{{{@bodyCustomCode}}}
<div class="container">
<header class="js-top">
<a class="logo" href="{{@website.url}}">
{{#if @website.logo}}
<img src="{{@website.logo}}" alt="{{@website.name}}">
{{else}}
{{@website.name}}
{{/if}}
</a>
<div class="top">
{{#if menus.mainMenu}}
{{> menu menus.mainMenu}}
{{/if}}
{{> search}}
</div>
</header>
<main>
{{#if @config.custom.heroTag}}
<section class="hero hero--normal">
{{#tag}}
<header>
{{#if description}}
<h1 class="hero__title">
{{description}}
</h1>
{{/if}}
<p class="hero__desc">
{{name}}
</p>
</header>
{{/tag}}
</section>
{{else}}
<section class="hero hero--overlay">
{{#tag}}
<header>
<h1 class="hero__title">
{{name}}
</h1>
{{#if description}}
<p class="hero__desc">
{{description}}
</p>
{{/if}}
</header>
{{/tag}}
</section>
{{/if}}
<div class="portfolio {{@config.custom.gridGutter}}">
{{#each posts}}
<article>
<a href="{{url}}" class="card">
{{#featuredImage}}
{{#if @config.custom.lazyLoad}}
<figure class="card__image">
<img
class="lazyload"
{{#checkIf @config.custom.lazyLoadEffect '!==' "lqip" }}
src="{{urlXs}}"
{{else}}
data-src="{{url}}"
{{/checkIf}}
data-srcset="{{srcset.post}}"
data-sizes="auto"
data-expand="300"
height="{{height}}"
width="{{width}}"
alt="{{alt}}">
</figure>
{{else}}
<figure class="card__image">
<img
src="{{url}}"
sizes="{{sizes.post}}"
srcset="{{srcset.post}}"
height="{{height}}"
width="{{width}}"
alt="{{alt}}">
</figure>
{{/if}}
{{/featuredImage}}
<header class="card__header">
<p>
<time datetime="{{date createdAt 'YYYY-MM-DDTHH:mm'}}">
{{#checkIf @config.custom.formatDate '!=' 'custom'}}
{{date createdAt @config.custom.formatDate}}
{{else}}
{{date createdAt @config.custom.formatDateCustom}}
{{/checkIf}}
</time>
</p>
<h2>
{{title}}
</h2>
</header>
</a>
</article>
{{/each}}
</div>
{{> pagination}}
</main>
{{> footer}}