/
post.hbs
78 lines (65 loc) · 2.21 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
73
74
75
76
77
78
{{!< default}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
{{!-- Post elements --}}
<div class="wrapper container-fluid">
<div class="row split">
<div class="{{#if featured}}col-lg-12{{else}}col-lg-9{{/if}} content">
<article class="{{post_class}}">
{{!-- Post date --}}
{{#if featured}}
<div class="post__tag">{{tags limit="1"}}</div>
{{/if}}
{{!-- Title --}}
<h1 class="post__title">{{title}}</h1>
{{!-- Post info --}}
<div class="post__info">
{{!-- Author --}}
{{#primary_author}}
{{#if profile_image}}
<img class="lazyload post__info-author--img" data-src="{{img_url profile_image}}"
title="{{name}}"/>
{{/if}}
<a class="post__info-author" href="{{url}}">{{name}}</a>
<div class="separator"></div>
{{/primary_author}}
{{^if featured}}
<div class="post__info-tag">in {{tags limit="1"}}</div>
<div class="separator"></div>
{{/if}}
<time datetime="{{date format="YYYY-MM-DD"}}">{{date published_at format="YYYY MMM DD, hh:mm"}}</time>
<div class="separator"></div>
{{reading_time}}
</div>
<div class="post__body">
{{!-- Post image --}}
{{#if feature_image}}
<img alt="{{title}}" class="lazyload post__image" data-src="{{img_url feature_image}}"/>
{{/if}}
{{!-- Post content --}}
<div class="post__content">
{{content}}
</div>
{{!-- Bottom share buttons --}}
{{> social-share}}
</div>
</article>
{{!-- Include Post author info --}}
{{> author-box}}
{{!-- Related Posts --}}
<h3 class="post-section-title" id="related-posts-title">Related posts</h3>
{{> related-posts}}
{{!-- Include Disqus Comments --}}
{{> comments}}
</div>
{{!-- Include sidebar --}}
{{^if featured}}
<aside class="col-lg-3 sidebar">
{{> sidebar}}
</aside>
{{/if}}
{{!-- Links to Previous/Next posts --}}
{{> read-next}}
</div>
</div>
{{/post}}