-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathpost.hbs
53 lines (42 loc) · 1.59 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}}
<div class="content-area">
<main class="site-main">
{{#post}}
<article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}} single-post">
<header class="article-header gh-canvas">
<div class="post-meta">
<span class="post-meta-item post-meta-date">
<time datetime="{{date format="YYYY-MM-DD"}}">{{date published_at format="DD MMM YYYY"}}</time>
</span>
{{#if reading_time}}
<span class="post-meta-item post-meta-length">{{reading_time}}</span>
{{/if}}
{{#if @site.comments_enabled}}
{{comment_count class="post-meta-item"}}
{{/if}}
{{#primary_tag}}
<span class="post-meta-item post-meta-tags"><a class="post-tag post-tag-{{slug}}" href="{{url}}" title="{{name}}">{{name}}</a></span>
{{/primary_tag}}
</div>
<h1 class="post-title">{{title}}</h1>
{{> "post-image"}}
</header>
<div class="gh-content gh-canvas">
{{content}}
</div>
{{#if @custom.show_author}}
{{> "author-box"}}
{{/if}}
</article>
{{#if comments}}
<section class="gh-comments gh-canvas">
<h3 class="related-title">Comments ({{comment_count empty="0" singular="" plural=""}})</h3>
{{comments title="" count=false}}
</section>
{{/if}}
{{#if @custom.show_related_posts}}
{{> "related"}}
{{/if}}
{{/post}}
</main>
</div>