-
Notifications
You must be signed in to change notification settings - Fork 2
/
post.hbs
executable file
·37 lines (36 loc) · 784 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
{{!< default}}
<main>
<article class="{{post_class}} full">
{{#post}}
<header>
<p class="date">
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="MMMM D, YYYY"}}</time>
</p>
<h1>{{{title}}}</h1>
{{#if tags}}
<p class="tags">{{tags separator=""}}</p>
{{/if}}
</header>
<section class="content">
{{content}}
</section>
<footer class="metadata">
{{#author}}
<section class="author">
{{#if image}}
<a href="{{url}}">
<figure class="avatar" style="background-image: url('{{image}}')">
<img src="{{image}}" alt="avatar" />
</figure>
</a>
{{/if}}
<h4 class="name"><a href="{{url}}">{{name}}</a></h4>
{{#if bio}}
<p class="bio">{{bio}}</p>
{{/if}}
{{/author}}
</section>
</footer>
{{/post}}
</article>
</main>