blob: 4f3419f465c27dddbabcee9ff669d34e48d2260f (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{{define "main"}}
<div class="main">
<div></div>
<!--Title-->
{{with .Title}}
<heading>
<h2>{{.}}</h2>
</heading>
{{end}}
<div></div>
<!--TOC-->
{{if (default true .Params.toc)}}
{{if and (ge (len .TableOfContents) 100) (ne .Params.toc "false")}}
<section class="box sk3-margin-v-full">
<div class="collapsible">☰ Table of Content</div>
<sk3-toc>{{.TableOfContents}}</sk3-toc>
</section>
{{end}}
{{end}}
<!--Content-->
{{with .Content}}<content class="sk3-margin-v-full">{{.}}</content>{{end}}
<div></div>
<!--Page Info-->
<section class="sk3-margin-v-full">
{{if site.Params.pageinfobox}}
{{partial "pageinfo-box.html" .}}
{{else}}
{{partial "pageinfo.html" .}}
{{end}}
</section>
<div></div>
<!--Disqus-->
{{if and site.DisqusShortname (default true .Params.comment)}}
{{template "_internal/disqus.html" .}}
{{end}}
</div>
{{end}}
|