-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.hbs
91 lines (65 loc) · 2.62 KB
/
page.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
{{!< default}}
{{!--
Page template.
--}}
{{#post}}
<main class="verdin-main">
<article class="verdin-article {{post_class}}">
<section class="verdin-content verdin-canvas gh-canvas mb-4">
<header class="verdin-article-header mb-0">
{{#if feature_image}}
<figure class="verdin-article-image mb-2">
<picture>
<source
media="(max-width: 390px)"
srcset="{{img_url feature_image size="m"}} 1x, {{img_url feature_image size="l"}} 2x"
type="image/jpeg" />
<source srcset="{{img_url feature_image size="l"}} 1x, {{img_url feature_image size="l"}} 2x" type="image/jpeg" />
<img class="lazyload"
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
width="740"
data-sizes="auto" />
</picture>
{{#if feature_image_caption}}
<figcaption>{{feature_image_caption}}</figcaption>
{{/if}}
</figure>
{{/if}}
<div class="verdin-article-header">
<h1 class="verdin-article-title bolder mb-3">{{title}}</h1>
<div class="verdin-list-item-meta">
{{#unless access}}
{{#has visibility="paid"}}
<span class="verdin-lock">{{> icons/lock}}{{t "Paid"}}</span>
{{/has}}
{{#has visibility="members"}}
<span class="verdin-lock">{{> icons/lock}}{{t "Members"}}</span>
{{/has}}
{{#has visibility="tiers"}}
<span class="verdin-lock">{{> icons/lock}}{{t "Paid"}}</span>
{{/has}}
{{/unless}}
{{#if featured}}
<div class="verdin-lock item-featured">
{{> icons/star}}{{t "Featured"}}
</div>
{{/if}}
</div>
</div>
</header>
{{#if access}}
{{content}}
{{else}}
<div class="verdin-post-sneak-peek fading">
{{{html}}}
</div>
{{> content-cta}}
{{/if}}
</section>
</article>
<div class="verdin-outer">
{{> "components/cta" title=@custom.email_signup_title subTitle=@custom.email_signup_subtitle}}
</div>
</main>
{{/post}}