This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost.hbs
66 lines (58 loc) · 2.12 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
{{!< default}}
{{!< header}}
<main class="main" role="main">
{{#post}}
<article class="article" role="article" itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<time class="date" datetime="{{date format="YYYY-MM-DD"}}" itemprop="datePublished">
{{date format='dddd DD MMM YYYY'}}
</time>
<h1 class="post-title" itemprop="headline">
{{title}}
</h1>
</header>
<div class="post-content" itemprop="articleBody">
{{content}}
</div>
{{#if tags}}
<div class="post-tags">
Tags: {{tags separator=" | "}}
</div>
{{/if}}
<div class="share-post">
<h4 class="share">Share this post: </h4>
<a class="share icon-twitter" target="_blank" href="http://twitter.com/share?text={{title}}&url={{url absolute="true"}}">
<span class="hidethis">Twitter</span>
</a>
<a class="share icon-facebook" target="_blank" href="http://www.facebook.com/sharer.php?u={{url absolute="true"}}">
<span class="hidethis">Facebook</span>
</a>
<a class="share icon-gplus" target="_blank" href="https://plus.google.com/share?url={{url absolute="true"}}">
<span class="hidethis">Google+</span>
</a>
</div>
{{#if author}}
<footer class="post-footer">
<address itemscope itemtype="http://schema.org/Person">
{{#if author.image}}
<div class="author-image"><img src="{{author.image}}" itemprop="image" /></div>
{{/if}}
<h4 class="author-name"><span itemprop="author">{{author.name}}</span></h4>
{{#if author.website}}
<div class="author-website"><a href="{{author.website}}" itemprop="url">{{author.website}}</a></div>
{{/if}}
</address>
<div class="author-bio">
<p>{{author.bio}}</p>
</div>
</footer>
{{/if}}
</article>
{{/post}}
{{#if pagination}}
<div class="pagination">
{{{pagination}}}
</div>
{{/if}}
</main>
{{> footer}}