-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost.hbs
45 lines (39 loc) · 1.41 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
{{!< default}}
{{#post}}
{{!-- Hero section --}}
{{#match @custom.default_post_template "narrow-feature-image"}}
{{> post-hero type="simple"}}
{{else match @custom.default_post_template "no-feature-image"}}
{{> post-hero type="no-image"}}
{{else match @custom.default_post_template "wide-feature-image"}}
{{> post-hero type="wide"}}
{{else match @custom.default_post_template "with-table-of-contents"}}
{{> post-hero type="wide-split"}}
{{else}}
{{> post-hero type="simple"}}
{{/match}}
{{!-- Content based on template type --}}
{{#match @custom.default_post_template "with-table-of-contents"}}
<section class="max-w-wide mx-auto flex flex-col gap-6 lg:flex-row" data-post-content>
{{!-- TOC --}}
{{> toc}}
{{!-- Content --}}
<article class="ghost-content prose md:prose-lg prose-theme lg:flex-1" data-no-overflow{{#unless access}} data-preview{{/unless}}>
{{content}}
</article>
</section>
{{else}}
{{!-- Content --}}
<article class="ghost-content prose md:prose-lg prose-theme"{{#unless access}} data-preview{{/unless}}>
{{content}}
</article>
{{/match}}
{{!-- Share --}}
{{> social-share
item_class="border border-brd bg-bgr leading-tight p-1.5 flex-1 flex gap-1.5 items-center justify-center rounded-theme hover:bg-bgr-tone"
}}
{{!-- Comments --}}
{{> comments}}
{{/post}}
{{!-- Related posts --}}
{{> related-posts}}