/
post.hbs
67 lines (56 loc) · 2.01 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
{{!< default}}
{{#post}}
{{navigation}}
<main class="content" role="main">
<header class="post-header">
<h1 class="post-title">{{{title}}}</h1>
</header>
<article class="post-page {{post_class}}">
{{! Everything inside the #post tags pulls data from the post }}
<span class="post-meta">
<time datetime="{{date format="YYYY-MM-DD"}}">
{{date format='DD MMMM YYYY'}}</time>
{{tags prefix="in " separator=" | "}}
</span>
<section class="post-content">
{{#if feature_image}}
<img class="post-featured-hero" src="{{img_url feature_image}}"/>
{{/if}}
{{content}}
<span class="author-post-footer">
Written by
{{#foreach authors}}
<img class="author-img-post" src="{{img_url profile_image}}"
title="{{name}}"/>
<a class="author-posturl" href="{{url}}">{{name}}</a>.
{{/foreach}}
</span>
{{> nav-goto_subscribe}}
{{> mailform}}
</section>
</article>
<aside class="read-next">
{{#prev_post}}
<a class="read-next-story prev {{#if feature_image}}"
style="background-image: url({{img_url feature_image}}){{else}}no-cover{{/if}}"
href="{{url}}">
<section class="post">
<h2>{{title}}</h2>
<p>{{excerpt words="19"}}…</p>
</section>
</a>
{{/prev_post}}
{{#next_post}}
<a class="read-next-story {{#if feature_image}}"
style="background-image: url({{img_url feature_image}}){{else}}no-cover{{/if}}"
href="{{url}}">
<section class="post">
<h2>{{title}}</h2>
<p>{{excerpt words="19"}}…</p>
</section>
</a>
{{/next_post}}
</aside>
{{/post}}
</main>
</script>