blob: bfe80ad56f6a24ebc71594da6e051e1f74e3bb30 (
plain)
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
|
{{ define "main" }}
{{ partial "header.html" . }}
<article
class="page {{ .Site.Language.LanguageName }}"
id="article"
>
<!-- Content -->
<div id="post-content" class="post-content markdown-body"
style="view-transition-name: post-content-{{ .File.UniqueID }}">
{{ if .Params.toc }}
<div id="toc-container"><div id="toc"></div></div>
{{ end }}
{{ .Site.Params.postHeaderContent | safeHTML }}
{{ .Content }}
</div>
<script src="/js/tocbot.min.js"></script>
<script>
tocbot.init({
tocSelector: '#toc',
contentSelector: '#post-content',
headingSelector: 'h2, h3:not(blockquote > h3)',
hasInnerContainers: true,
scrollSmoothOffset: -30
});
</script>
</article>
{{ partial "footer.html" . }}
{{ end }}
|