/
post.hbs
82 lines (74 loc) · 2.78 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{{!< default}}
{{#post}}
<article class="post-wrapper">
{{#if feature_image}}
<section class="post-media text-center">
<img src="{{img_url feature_image}}" class="cover-image">
</section>
{{/if}}
<h1 class="post-title text-center">{{{title}}}</h1>
<section class="post-meta text-center">
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>
</section>
<section class="post-full-content">
<div class="post-content">
{{content}}
</div>
</section>
<div class="post-spacer"></div>
<section class="post-extra">
<div class="row">
<div class="eight columns">
<section class="post-tags">
{{#if tags}}
<i class="fas fa-tags"></i> {{tags}}
{{/if}}
</section>
</div>
<div class="four columns">
{{> "share"}}
</div>
</div>
</section>
<section class="author-meta">
{{#primary_author}}
<div class="row">
<div class="two columns">
<img class="author-image" src="{{img_url profile_image}}" alt="{{name}}">
</div>
<div class="ten columns">
<h4 class="author-name">
<a href="{{url}}">{{name}}</a> <small><a href="{{twitter_url}}">{{twitter}}</a></small>
</h4>
<p>{{bio}}</p>
</div>
</div>
{{/primary_author}}
</section>
<div class="post-spacer"></div>
<aside class="read-next">
<div class="row">
<div class="six columns">
{{#next_post}}
<a class="read-next-story" href="{{url}}">
<section class="post">
<h4>{{title}}</h4>
<p>{{excerpt words="19"}}…</p>
</section>
</a>
{{/next_post}}
</div>
<div class="six columns">
{{#prev_post}}
<a class="read-next-story prev" href="{{url}}">
<section class="post">
<h4>{{title}}</h4>
<p>{{excerpt words="19"}}…</p>
</section>
</a>
{{/prev_post}}
</div>
</div>
</aside>
</article>
{{/post}}