-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathpost.hbs
59 lines (49 loc) · 1.68 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
{{!< default}}
<div class="content-area">
<main class="site-main">
{{#post}}
<article class="{{post_class}} single-post">
{{#if feature_image}}
{{> "post-header"}}
{{else}}
<header class="post-header gh-canvas">
{{#primary_tag}}
<div class="post-tags">
<a class="post-tag post-tag-{{slug}}" href="{{url}}" title="{{name}}">{{name}}</a>
</div>
{{/primary_tag}}
<h1 class="post-title">{{title}}</h1>
<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>
<span class="post-meta-item post-meta-length">{{reading_time}}</span>
{{#if featured}}
<span class="post-meta-featured">
{{> "icons/star"}}
</span>
{{/if}}
{{#if @site.comments_enabled}}
{{comment_count class="post-meta-item"}}
{{/if}}
</div>
</header>
{{/if}}
<div class="post-content gh-content gh-canvas">
{{content}}
</div>
</article>
{{#if @custom.show_author}}
{{> "author-box"}}
{{/if}}
{{#if comments}}
<div class="gh-comments gh-canvas">
{{comments}}
</div>
{{/if}}
{{/post}}
{{#if @custom.show_related_posts}}
{{> "related-posts"}}
{{/if}}
</main>
</div>