-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost.hbs
57 lines (49 loc) · 1.5 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
{{!< default}}
<main id="main post-wrapper">
{{#post}}
<!-- Post Content Section -->
<article class="max-w-full px-4 mx-auto prose-lg post-content prose-invert text-light md:px-32">
{{#is "page"}}
{{#if @page.show_title_and_feature_image}}
<h1 class="text-4xl">{{title}}</h1>
{{> "feature-image"}}
{{/if}}
{{/is}}
{{#is "post"}}
<h1 class="text-4xl">{{title}}</h1>
<section class="mb-8 text-center post-meta">
{{> "feature-image" }}
<div class="space-x-2 tags">
{{#foreach tags}}
<a href="{{url}}" class="px-2 py-1 text-sm rounded bg-dark hover:bg-highlight">{{name}}</a>
{{/foreach}}
</div>
<div class="mb-2 text-xs text-light">
{{#foreach authors}}
Author: <a href="{{url}}" class="hover:underline" rel="author" >{{name}}</a>
{{/foreach}} | Published on {{date published_at format="D MMMM YYYY"}}
</div>
{{/is}}
</section>
<!-- Main Post Content -->
<section>
{{{content}}}
</section>
{{#is "post"}}
<section id="comments">
{{#if comments}}
<div class="gh-comments gh-canvas">
{{#if @member}}
{{comments count=false mode=dark title="Opinions?"}}
{{else}}
{{> "social-sso"}}
{{comments count=false mode=dark title=" "}}
{{/if}}
</div>
{{/if}}
</section>
{{> "components/author-box"}}
{{/is}}
</article>
{{/post}}
</main>