-
Notifications
You must be signed in to change notification settings - Fork 1
/
post.hbs
51 lines (36 loc) · 1.39 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
48
49
50
51
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
<main class="content" role="main">
<article class="{{post_class}}">
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
{{! Everything below outputs content of the the post which has been published }}
<span class="post-meta">
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="MMMM DD, YYYY"}}</time>
{{#if tags}}
<ul>
{{#foreach tags}}
<li><a>#{{name}}</a></li>
{{/foreach}}
</ul>
{{/if}}
</span>
<h1 class="post-title"><a href="{{url}}">{{{title}}}</a></h1>
<!-- todo: 1) can we partial this 2) modal bio-->
<!--
{{#if author}}
<h4>By {{author.name}}</h4>
{{/if}}
-->
<section class="post-content">
{{content}}
</section>
<footer class="post-footer">
{{! To use a custom section, create the appropriate partials/custom-*.hbs, then comment first line and uncomment the second line}}
{{> share-post}}
{{!> custom-share-post}}
</footer>
{{/post}}
</article>
</main>