Added tag page
[editorial.git] / index.hbs
1 {{!< default}}
2 {{!-- The tag above means: insert everything in this file
3 into the {body} of the default.hbs template --}}
4
5
6 {{!-- Featured Post --}}
7 {{#is "home"}}
8 {{#get "posts" filter="featured:true" limit="1" as |featured_post|}}
9 {{#foreach featured_post}}
10 <article id="banner">
11 <div class="content">
12 <header>
13 <h1><a href="{{url}}">{{title}}</a></h1>
14 {{#if custom_excerpt}}<p>{{custom_excerpt}}</p>{{/if}}
15 </header>
16 {{content words="42"}}
17 <ul class="actions">
18 <li><a href="{{url}}" class="button big">Learn More</a></li>
19 </ul>
20 </div>
21 {{#if feature_image}}
22 <a href="{{url}}" class="image object">
23 <img src="{{img_url feature_image}}" alt="{{title}}" />
24 </a>
25 {{/if}}
26 </article>
27 {{/foreach}}
28 {{/get}}
29 {{/is}}
30
31 {{!-- Posts --}}
32 <section>
33
34 <header class="major">
35 <h2>Recent posts</h2>
36 </header>
37
38 <section class="posts">
39 {{#foreach posts}}
40 <article>
41 {{#if feature_image}}
42 <a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
43 {{/if}}
44 <h3><a href="{{url}}">{{title}}</a></h3>
45 <p>{{excerpt words="33"}}</p>
46 <ul class="actions special">
47 <li><a href="{{url}}" class="button">Full Story</a></li>
48 </ul>
49 </article>
50 {{/foreach}}
51 </section>
52
53 </section>
54
55 {{!-- Pagination --}}
56 {{pagination}}
57