forked from TryGhost/Alto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.hbs
53 lines (42 loc) · 1.47 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}}</time>
</span>
{{#if reading_time}}
<span class="post-meta-item post-meta-length">
{{reading_time}}
</span>
{{/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>
{{!-- <div class="comment-container gh-canvas">
<div class="comment">
If you want to embed comments, this is a good place to do it!
</div>
</div> --}}
{{#if @custom.show_related_posts}}
{{> "related"}}
{{/if}}
{{/post}}
</main>
</div>