-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.hbs
executable file
·44 lines (38 loc) · 1.44 KB
/
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
39
40
41
42
43
44
{{!< default}}
{{#post}}
<main class="site-main">
<article
class="post-full {{post_class}} {{#has tag='#noimg'}}no-image{{else}}{{#unless feature_image}}no-image{{/unless}}{{/has}}">
<div class="post-full-header">
{{#if feature_image}}
<div class="post-full-cover" style="background-image: url({{feature_image}})">
</div>
{{else}}
<div class="post-full-cover" style="background-image: url({{asset "img/placeholder.jpg"}})">
</div>
{{/if}}
<div class="post-full-text">
<div class="post-full-meta">
<time class="post-full-meta-date"
datetime="{{date format="YYYY-MM-DD"}}">{{date format="YYYY, MMM Do"}}</time>
</div>
<h1 class="post-full-title">{{title}}</h1>
{{#foreach tags}}
<span class="post-item-tag tag-{{slug}}"><a href="{{url}}">{{name}}</a></span>
{{/foreach}}
</div>
</div>
</article>
<div class="inner-wide">
<section class="post-full-content">
{{content}}
</section>
{{!-- post footer --}}
{{> post-footer}}
{{> comments}}
</div>
</main>
{{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
{{#contentFor "scripts"}}
{{/contentFor}}
{{/post}}