forked from TryGhost/Taste
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.hbs
41 lines (35 loc) · 1.78 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
{{!< default}}
<main class="gh-main">
{{#match @custom.header_action "No action"}}
{{> "components/header" layout="wide" background="image" [email protected]_header [email protected]_header}}
{{else match @custom.header_action "Search"}}
{{> "components/header" layout="wide" background="image" action="search" [email protected]_header [email protected]_header}}
{{else match @custom.header_action "Subscribe"}}
{{> "components/header" layout="wide" background="image" action="email" [email protected]_header [email protected]_header}}
{{/match}}
{{> "components/list" layout="magazine" count="5" showExcerpt=true showPrimaryTag=true}}
{{#if @custom.enter_tag_slugs_for_homepage_sections}}
{{#get "tags" filter="slug:[{{@custom.enter_tag_slugs_for_homepage_sections}}]"}}
{{#foreach tags}}
{{#if @odd}}
{{> "components/list" layout="grid" column="3" count="3" showHeader=true}}
{{else}}
{{> "components/list" layout="grid" column="4" count="4" showHeader=true}}
{{/if}}
{{/foreach}}
{{/get}}
{{else}}
{{#match posts.length ">" 1}}
{{#get "tags" include="count.posts" order="count.posts desc" limit="3"}}
{{#foreach tags}}
{{#if @odd}}
{{> "components/list" layout="grid" column="3" count="3" showHeader=true}}
{{else}}
{{> "components/list" layout="grid" column="4" count="4" showHeader=true}}
{{/if}}
{{/foreach}}
{{/get}}
{{/match}}
{{/if}}
{{> "components/cta" [email protected]_signup_text}}
</main>