forked from max-holland/Mutiny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.hbs
executable file
·54 lines (49 loc) · 1.94 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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! The main content area on the homepage }}
<section id="post-container" role="main">
{{! Each post will be output using this markup }}
{{#foreach posts}}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<div class="container">
<div class="row">
<aside class="col-sm-2 hidden-xs">
</aside>
<div class="col-sm-8">
<header>
<h1 itemprop="name headline"><a href="{{url}}">{{{title}}}</a></h1>
</header>
<section class="mobile-side">
<p>
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format='DD MMM YYYY'}}</time>
<span class="text-muted">
{{tags separator=" • "}}
</span>
</p>
</section>
{{#if image}}
<section class="cover-image">
<img src={{image}} style="max-width: 100%; height: auto">
</section>
{{/if}}
<section itemprop="articleBody text">
<p>{{content}}</p>
</section>
</div>
</div>
</div>
</article>
{{/foreach}}
{{!! After all the posts, we have the previous/next pagination links }}
<nav role="navigation">
<div class = "container">
<div class="row">
<aside class="col-sm-2 hidden-xs"></aside>
<div class="col-sm-8">
{{pagination}}
</div>
</div>
</div>
</nav>
</section>