This repository has been archived by the owner on May 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost.hbs
72 lines (64 loc) · 3.36 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
{{!< default}}
{{! Post }}
{{#post}}
<article class="postpage" itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="headline" content="{{title}}">
<meta itemprop="description" content="{{excerpt}}">
<meta itemprop="datePublished" content="{{date format="MMMM D, YYYY"}}">
<div class="page__inner-wrap">
<header>
<h1 class="page__title" itemprop="headline">{{title}}</h1>
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {{reading_time}}</p>
</header>
<section class="page__content {{post_class}}" itemprop="text">
{{content}}
</section>
<footer class="page__meta">
<p class="page__taxonomy">
<strong><i class="fa fa-fw fa-tags" aria-hidden="true"></i> Tags: </strong>
<span itemprop="keywords">
{{#if tags}}
{{#primary_tag}}
<a href="{{url}}" class="page__taxonomy-item page__taxonomy-item-primary" rel="tag">{{name}}</a><span class="sep">, </span>
{{/primary_tag}}
{{#foreach tags from="2"}}
<a href="{{url}}" class="page__taxonomy-item" rel="tag">{{name}}</a><span class="sep">, </span>
{{/foreach}}
{{/if}}
</span>
</p>
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> Updated:</strong>
<time datetime="{{date format="YYYY-DD-MMTHH:mm:ss-05:00"}}">{{date format="MMMM D, YYYY"}}</time></p>
</footer>
<section class="page__share">
<h4 class="page__share-title">Share on</h4>
<a href="https://twitter.com/intent/tweet?via=nsr81&text={{title}} {{url absolute='true'}}"
class="btn btn--twitter" title="Share on Twitter"><i class="fa fa-fw fa-twitter" aria-hidden="true"></i><span>
Twitter</span></a>
<a href="https://www.facebook.com/sharer/sharer.php?u={{url absolute='true'}}"
class="btn btn--facebook" title="Share on Facebook"><i class="fa fa-fw fa-facebook" aria-hidden="true"></i><span>
Facebook</span></a>
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{url absolute='true'}}"
class="btn btn--linkedin" title="Share on LinkedIn"><i class="fa fa-fw fa-linkedin" aria-hidden="true"></i><span>
LinkedIn</span></a>
</section>
<nav class="pagination">
{{#prev_post}}
<a href="{{url}}" class="pagination--pager" title="{{title}}">Previous</a>
{{else}}
<a href="#" class="pagination--pager disabled">Previous</a>
{{/prev_post}}
{{#next_post}}
<a href="{{url}}" class="pagination--pager" title="{{title}}">Next</a>
{{else}}
<a href="#" class="pagination--pager disabled">Next</a>
{{/next_post}}
</nav>
</div>
{{> "comments" }}
</article>
<!-- {{comment_id}} -->
{{#get "posts" limit="4" filter="id:-{{comment_id}}" }}
{{> "related" recentposts=posts }}
{{/get}}
{{/post}}