-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
108 lines (89 loc) · 3.01 KB
/
index.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
106
107
108
{{!< default}}
{{!--
Default index template.
Parameters that you can change:
* count = number of posts
* layout = (list,grid)
* showHeader = (true, false)
* showPrimaryAuthor = (true,false)
* showPublishedAt = (true,false)
* showAccessMeta = (true,false)
* showPrimaryTag = (true,false)
* showFeaturedMeta = (true,false)
* showPrimaryTag = (true,false)
* showImageHoverAnimation = (true,false)
* showMetaHoverAnimation = (true,false)
* titleSize= (h2,h3,h4)
--}}
{{#match @custom.featured_posts_layout "!=" "Hide featured posts"}}
<section class="verdin-featured mb-4">
<div class="verdin-outer">
{{#match @custom.featured_posts_layout "Grid"}}
{{> "components/list-featured"
count=@custom.number_of_featured_posts
layout="grid"
showHeader=false
showPrimaryAuthor=false
showPublishedAt=true
showAccessMeta=false
showFeaturedMeta=true
showPrimaryTag=true
showImageHoverAnimation=false
showMetaHoverAnimation=false
titleSize="h4"
}}
{{else}}
{{> "components/list-featured"
count=@custom.number_of_featured_posts
layout="list"
showHeader=true
showPrimaryAuthor=false
showPublishedAt=true
showAccessMeta=true
showFeaturedMeta=false
showPrimaryTag=true
showImageHoverAnimation=true
showMetaHoverAnimation=true
titleSize="h2"
}}
{{/match}}
</div>
</section>
{{/match}}
<main class="verdin-main verdin-outer">
{{#match @custom.latest_posts_layout "Grid"}}
{{> "components/list"
count=@custom.number_of_posts
layout="grid"
showHeader=true
showExcerpt=false
showPrimaryAuthor=false
showPublishedAt=false
showAccessMeta=true
showPrimaryTag=true
showFeaturedMeta=true
showReadingTime=true
showImageHoverAnimation=false
showMetaHoverAnimation=false
titleSize="h4"
}}
{{else}}
{{> "components/list"
count=@custom.number_of_posts
layout="list"
showHeader=true
showExcerpt=false
showPrimaryAuthor=true
showPublishedAt=true
showAccessMeta=true
showPrimaryTag=true
showFeaturedMeta=true
showReadingTime=true
showImageHoverAnimation=true
showMetaHoverAnimation=true
titleSize="h2"
}}
{{/match}}
{{> "components/list-archives" displayAuthors=true displayTags=true title="Browse content"}}
{{> "components/cta" title=@custom.email_signup_title subTitle=@custom.email_signup_subtitle}}
</main>