-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpost.hbs
65 lines (54 loc) · 2.6 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
{{!< default}}
{{! The comment above "< default" means - insert everything in this file into
the {body} of the default.hbs template, which contains our header/footer. }}
{{! Everything inside the #post tags pulls data from the post }}
{{#post}}
<main class="mainContent" role="main">
<article class="post {{post_class}}">
<h1 class="postTitle" itemprop="headline">{{title}}</h1>
<div class="postInfo">
<span>{{author}} |</span>
<span class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}} |</span>
<span>reading time: <span class="eta"></span></span>
</div>
<div class="postCover" style="background-image:url('{{img_url feature_image}}')"></div>
<section class="post-content postContent">
{{content}}
</section>
{{#next_post}}
<section class="recentPost">
<p>Check the next post: <a href="{{url}}" rel="bookmark" title="{{title}}">{{title}}</a> »</p>
</section>
{{else}}
{{/next_post}}
<div class="postShare-wrap">
<div class="postSharing">
<span>Share on:</span>
<a class="postShare fb" title="{{{title}}}" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;"><i class="icon fa fa-facebook"></i></a>
<a class="postShare twitter" title="{{{title}}}" target="_blank" href="https://twitter.com/intent/tweet?text={{encode title}}&url={{url absolute="true"}}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;"><i class="icon fa fa-twitter"></i></a>
<a class="postShare googleplus" title="{{{title}}}" target="_blank" href="https://plus.google.com/share?url={{url absolute="true"}}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;"><i class="icon fa fa-google-plus"></i></a>
</div>
</div>
</article>
{{#author}}
<section class="authorWrap">
<div class="authorInner">
{{#if profile_image}}
<img alt='{{name}}' src='{{img_url profile_image}}'>
{{/if}}
</div>
<div class="authorDesc">
<img alt='{{name}}' src='{{img_url profile_image}}'>
<h4 class="author"><a href="{{url}}" title="{{name}}" rel="author">{{name}}</a></h4>
{{#if bio}}
<p class="authorInfo">{{bio}}
{{#if website}}<span> Say hey: <a href="{{website}}">{{website}}</a></span>{{/if}}
</p>
{{/if}}
</div>
</section>
{{/author}}
<!-- HERE GOES YOUR DISQUSS CODE -->
<!-- HERE GOES YOUR DISQUSS CODE -->
</main>
{{/post}}