-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpost.hbs
38 lines (35 loc) · 1.2 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
{{!< default}} {{!-- The tag above means: insert everything in this file into the {body} of the default.hbs template
--}}
{{#post}}
{{> "header"}}
<main id="sm-main">
<article class="sm-content-grid sm-post-content {{post_class}} {{slug}}">
{{content}}
</article>
{{#if @custom.show_table_of_contents}}
<div class="sm-post-toc">
<div class="sm-post-toc-contents">
</div>
<button class="sm-post-toc-btn">
<svg class="sm-toc-icon" aria-hidden="true"><use href="#sm-toc-icon"></use></svg>
<svg class="sm-toc-icon-close" aria-hidden="true"><use href="#sm-close-icon"></use></svg>
</button>
</div>
{{/if}}
</main>
<section class="sm-grid">
{{comments}}
<div class="sm-related-posts">
{{#get "posts" limit="6" include="tags" filter="id:-{{id}}+tag:[{{tags.[*].slug}}]" as |related|}}
{{#if related}}
<h2>Read this next</h2>
<div class="sm-home-grid">
{{#foreach related}}
{{> "cards/card-base"}}
{{/foreach}}
</div>
{{/if}}
{{/get}}
</div>
</section>
{{/post}}