-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
47 lines (42 loc) · 1.3 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
45
46
47
{{!< default}}
{{#post}}
<div class="box">
<div class="container post-container">
<article class="post">
<header class="post-header">
<section class="post-meta">
{{! Hide day for Notes and Projects}}
{{#has tag="Notes, Projects"}}
<time class="post-meta-date" datetime="{{date format="YYYY-MM"}}">{{date format="MMMM YYYY"}}</time>
{{else}}
<time class="post-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMMM YYYY"}}</time>
{{/has}}
</section>
<h1 class="title is-2">{{title}}</h1>
<p>
{{! Give primary-tag different Bulma (is-primary) styling than others (is-link)}}
{{#foreach tags}}
{{#if @first}}
<a class="tag is-link is-normal" href="{{url}}">{{name}}</a>
{{else}}
<a class="tag is-info is-normal" href="{{url}}">{{name}}</a>
{{/if}}
{{/foreach}}
</p>
</header><br>
{{#if feature_image}}
<figure class="post-image">
<img
src="{{feature_image}}"
alt="{{title}}"
/>
</figure>
{{/if}}
<section class="post-content">
{{content}}
</section>
{{> "post-footer"}}
</article>
</div>
</div>
{{/post}}