-
Notifications
You must be signed in to change notification settings - Fork 6
/
post.hbs
61 lines (50 loc) · 1.84 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
58
59
60
61
{{!< default}}
{{#post}}
<article>
<header>
<div class="post-meta">
<time datetime="{{date format="YYYY MMM DD"}}" class="post-meta__date date">{{date format="YYYY MMM DD"}}</time>
• <span class="post-meta__tags tags">{{tags}}</span>
<span class="post-meta__author author"><img src="{{primary_author.profile_image}}"
alt="profile image for {{primary_author.name}}"
class="avatar post-meta__avatar"/> by {{primary_author.name}}</span>
</div>
<h1 class="post-title">{{{title}}}</h1>
</header>
{{#if @custom.enable_toc }}
<div class="toc"></div>
{{/if}}
<section class="toc-content {{post_class}}">
{{content}}
</section>
</article>
<div class="post_navi">
{{#prev_post}}
<div class="prev_post">{{t 'Prev Post'}}:<a href="{{url}}">{{title}}</a></div>
{{/prev_post}}
{{#next_post}}
<div class="next_post">{{t 'Next Post'}}:<a href="{{url}}">{{title}}</a></div>
{{/next_post}}
</div>
{{#has tag="MathJax"}}
<script src='https://cdn.bootcss.com/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML'></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>
{{/has}}
{{> comment }}
{{#if @custom.enable_toc }}
<script defer src="{{asset 'js/third_party/tocbot-4.11.1.min.js'}}" onload="tocbot.init({
tocSelector: '.toc',
contentSelector: '.toc-content',
headingSelector: 'h1, h2, h3',
hasInnerContainers: true,
});"></script>
{{/if}}
{{/post}}
<script defer src="{{asset "js/third_party/highlight-11.4.0.min.js"}}" onload="hljs.highlightAll()"></script>