forked from ianpaschal/revenant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.hbs
38 lines (34 loc) · 800 Bytes
/
post.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
{{!< default}}
{{#post}}
<div class="post-full">
{{! image }}
{{#if image}}
<a href="{{url}}">
<div class="post-image" style="background-image: url({{image}})"></div>
</a>
<div class="post-body">
{{else}}
<div class="post-body no-splash">
{{/if}}
<h1 class="post-title"><a href="{{url}}">{{title}}</a></h1>
<p class="post-author">
{{author}} on
<time class="post-date" datetime="{{date format="YYYY-MM-DD"}}">
{{date format="DD MMMM YYYY"}}
</time>
</p>
<div class="post-content">
{{content}}
</div>
{{#if tags}}
<div class="post-tags">
{{#foreach tags}}
<a href="{{url}}" title="{{name}}" class="tag tag-{{id}} {{slug}}">
{{name}}
</a>
{{/foreach}}
</div>
{{/if}}
</div>
</div>
{{/post}}