forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
executable file
·53 lines (46 loc) · 1.54 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
{{!< default}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<div class="{{post_class}}">
<div class="container wrapper">
<div class="post-header">
{{!-- Post tags --}}
{{#if tags}}
{{#foreach tags limit="1"}}
<a class="tag-{{slug}} post-header__tag" href="{{url}}" title="{{name}}" aria-label="{{name}}s">#{{name}}</a>
{{/foreach}}
{{/if}}
{{!-- Post title --}}
<h1 class="post-header__title">{{title}}</h1>
<div class="post-header__info">
<div class="post-header__author">{{authors}}</div>
<time datetime="{{date format='YYYY-MM-DD'}}" class="post-header__date">{{date published_at}}</time>
<div class="post-header__read-time">{{reading_time minute=(t "1 min read") minutes=(t "% min read")}}</div>
</div>
</div>
</div>
<div class="container wrapper" id="content">
<div class="grid">
{{!-- Post Content --}}
<article class="col-xs-12 col-md-8">
<div class="post-content">
{{!-- Post image --}}
{{#if feature_image}}
<img class="post-img lazyload js-fadein" src="{{img_url feature_image}}" alt="{{title}}"/>
{{/if}}
<div class="post-content__inner">
{{content}}
</div>
{{!-- Post Social Share --}}
{{>social-share}}
</div>
</article>
<aside class="col-xs-12 col-md-4">
{{>sidebar}}
</aside>
</div>
</div>
</div>
{{!-- Related posts --}}
{{> related-posts}}
{{/post}}