-
Notifications
You must be signed in to change notification settings - Fork 9
/
post.hbs
108 lines (88 loc) · 3.5 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{> header}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<main class="main_minimal" role="main">
<article class="article__wrapper" role="article">
<header>
<h1 class="post__title">{{title}}</h1>
{{!-- <time class="date" datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time> --}}
</header>
<div class="post__pre">
{{^has tag="#nodate"}}
<time class="post__date" datetime="{{date format="YYYY-MM-DD"}}">{{^is "post"}}Last Updated:
{{/is}}{{date}}</time>
{{/has}}
{{#if featured}}<span class="post__featured"> | ★ Featured</span>{{/if}}
</div>
<section class="post__content-wrapper">
<div class="post__content">
{{^has tag="#noFeature"}}
<img src="{{feature_image}}" class="kg-image post__feature-image" />
{{/has}}
{{#has tag="#preview"}}
{{> wip}}
{{/has}}
{{content}}
{{#has tag="#preview"}}
{{> wip}}
{{/has}}
</div>
</section>
<hr class="post__separator">
{{#is "post"}}
{{#if tags}}
<div class="post__tags">
Tags: {{tags separator=", "}}
</div>
<div class="post__permalink">
Permalink: <i>{{url absolute='true'}}</i>
</div>
{{/if}}
{{/is}}
{{!-- <footer>
<h4>Share</h4>
<a class="icon-twitter" target="_blank" href="http://twitter.com/share?text={{title}}&url={{url absolute="true"}}"><span class="hideThis_minimal">Twitter</span></a>
<a class="icon-facebook" target="_blank" href="http://www.facebook.com/sharer.php?u={{url absolute="true"}}"><span class="hideThis_minimal">Facebook</span></a>
</footer> --}}
</article>
{{!--
{{#has tag="#subscribe"}}
{{> subscribe}}
{{/has}}
--}}
{{!-- {{#is "post"}}
<nav class="post__footer" role="navigation">
<div class="footer__wrapper">
<div class="footer__wrapper-inner">
<div class="footer__link-prev">
{{#prev_post in="primary_tag"}}
<a class="footer__link-anchor" href="{{url}}" rel="prev">
<object class="footer__link-icon-left">
<embed src="{{asset "icons/arrow-left.svg"}}" />
</object>
<p class="footer__link-label">Previous</p>
<h3 class="footer__title-article">{{title}}</h3>
</a>
{{/prev_post}}
</div>
{{#next_post in="primary_tag"}}
<div class="footer__link-next">
<a class="footer__link-anchor" href="{{url}}" rel="next">
<object class="footer__link-icon-right">
<embed src="{{asset "icons/arrow-right.svg"}}" />
</object>
<p class="footer__link-label">Next</p>
<h3 class="footer__title-article">{{title}}</h3>
</a>
</div>
{{/next_post}}
</div>
</div>
</nav>
{{/is}} --}}
</main>
{{/post}}
{{> footer}}