This repository has been archived by the owner on Jun 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
63 lines (54 loc) · 2.29 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
{{!< default}}
{{#post}}
{{#if image}}
<div class="post-image" style="background-image: url('{{image}}');">
<img src="{{image}}" alt="">
</div>
{{/if}}
<article class="{{post_class}} single-post" role="main">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>
<p class="meta">
Dated <time datetime="{{date format='YYYY-MM-DD'}}">{{date format="Do MMMM YYYY"}}</time>
{{tags prefix=" on "}}
• by {{author}}
</p>
</header>
<section class="post-content">
{{content}}
</section>
<footer class="post-footer">
{{#author}}
{{#if image}}
<figure class="author-image">
<a class="img" href="{{url}}" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></a>
</figure>
{{/if}}
<section class="author">
<h4><a href="{{url}}">{{name}}</a></h4>
<p class="author-meta">
{{#if location}}<span class="author-location icon-location">{{location}}</span>{{/if}}
{{#if website}}<span class="author-link icon-link"><a href="{{website}}" class="js-remove-domain-schema">{{website}}</a></span>{{/if}}
</p>
{{#if bio}}
<p class="author-bio">{{bio}}</p>
{{else}}
<p class="author-bio">Read <a href="{{url}}">more posts</a> by this author.</p>
{{/if}}
</section>
{{/author}}
</footer>
<aside class="newer-older-post pagination clearfix">
{{#next_post}}
<a class="newer-posts" href="{{url}}"><span>‹</span> Next Post</a>
{{/next_post}}
<span class="page-number"> </span>
{{#prev_post}}
<a class="older-posts" href="{{url}}">Previous Post <span>›</span></a>
{{/prev_post}}
</aside>
</article>
{{#has tag="Code,code"}}
<script type="text/javascript" src="{{asset "js/prism.min.js"}}"></script>
{{/has}}
{{/post}}