forked from TryGhost/Ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
/
post.hbs
49 lines (36 loc) · 1.26 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
{{!< default}}
<main class="site-main">
{{#post}}
<article class="gh-article {{post_class}}">
<header class="gh-article-header gh-canvas">
<span class="gh-article-meta"{{#if primary_tag.accent_color}} style="--tag-color: {{primary_tag.accent_color}};"{{/if}}>
{{#primary_author}}By <a href="{{url}}">{{name}}</a>{{/primary_author}}
{{#if primary_tag}}
in
<a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
{{/if}}
—
<time datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
</span>
<h1 class="gh-article-title">{{title}}</h1>
{{#if custom_excerpt}}
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
{{/if}}
{{> "post-image"}}
</header>
<div class="gh-content gh-canvas">
{{content}}
</div>
</article>
{{> "social-media-post"}}
{{> "post-navigation"}}
{{#if comments}}
<div class="gh-comments gh-canvas">
{{comments}}
</div>
{{/if}}
{{/post}}
{{#if @custom.show_related_posts}}
{{> "related-posts"}}
{{/if}}
</main>