-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathpost.hbs
More file actions
48 lines (34 loc) · 1.25 KB
/
post.hbs
File metadata and controls
48 lines (34 loc) · 1.25 KB
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
{{!< 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}}>
{{{t "By {authors}" authors=(authors) }}}
{{#if primary_tag}}
{{{t "in {primaryTag}" primaryTag=(concat "<a class=\"gh-article-tag\" href=\"" primary_tag.url "\">" primary_tag.name "</a>")}}}
{{/if}}
—
<time datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</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>
{{> "post-navigation"}}
{{#if comments}}
<div class="gh-comments gh-canvas">
{{comments}}
</div>
{{/if}}
{{/post}}
{{#if @custom.show_related_posts}}
{{> "related-posts"}}
{{/if}}
</main>