forked from TryGhost/Editorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
57 lines (49 loc) · 1.59 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
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- Featured Post --}}
{{#is "home"}}
{{#get "posts" filter="featured:true" limit="1" as |featured_post|}}
{{#foreach featured_post}}
<article id="banner">
<div class="content">
<header>
<h1><a href="{{url}}">{{title}}</a></h1>
{{#if custom_excerpt}}<p>{{custom_excerpt}}</p>{{/if}}
</header>
{{content words="42"}}
<ul class="actions">
<li><a href="{{url}}" class="button big">Learn More</a></li>
</ul>
</div>
{{#if feature_image}}
<a href="{{url}}" class="image object">
<img src="{{img_url feature_image}}" alt="{{title}}" />
</a>
{{/if}}
</article>
{{/foreach}}
{{/get}}
{{/is}}
{{!-- Posts --}}
<section>
<header class="major">
<h2>Recent posts</h2>
</header>
<section class="posts">
{{#foreach posts}}
<article>
{{#if feature_image}}
<a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
{{/if}}
<h3><a href="{{url}}">{{title}}</a></h3>
<p>{{excerpt words="33"}}</p>
<ul class="actions special">
<li><a href="{{url}}" class="button">Full Story</a></li>
</ul>
</article>
{{/foreach}}
</section>
</section>
{{!-- Pagination --}}
{{pagination}}