-
Notifications
You must be signed in to change notification settings - Fork 2
/
home.hbs
51 lines (50 loc) · 1.38 KB
/
home.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
{{!< default}}
<div>
<div class="container">
{{> "hero"}}
</div>
<div class="container">
{{#if @custom.latest_post}}
<div class="segment">
{{#get "posts" limit="6" include="tags" as |recents|}}
{{#if recents}}
<h2 class="home-heading">
<div>
<div class="title">
{{@custom.latest_post_title}}
</div>
</div>
<a class="button" href="/blog">{{t "View all"}}</a>
</h2>
<div class="post-preview">
{{!-- {{#foreach posts}} --}}
{{#foreach recents}}
{{> "card"}}
{{/foreach}}
{{!-- {{/foreach}} --}}
</div>
{{/if}}
{{/get}}
</div>
{{/if}}
{{#if @custom.featured_post}}
<div class="segment">
<h2 class="home-heading">
<div>
<div class="title">
{{@custom.featured_post_title}}
</div>
</div>
</h2>
<div class="highlight-preview">
{{> loop}}
</div>
</div>
{{/if}}
{{#if @custom.projects}}
<div class="segment">
{{> projects}}
</div>
{{/if}}
</div>
</div>