blob: 784dd41218767e7b09f85d3498e219d61ccc3319 (
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
48
|
<header class="text-left title">
<h1 class="title">{{ .Title }}</h1>
</header>
<section id="category-pane" class="meta">
{{ if ne .Params.showpagemeta false }}
<div class="col-md-12">
<h6 class="text-left meta">
{{ if not .Date.IsZero }} PUBLISHED ON {{ .Date.Format .Site.Params.dateformat | upper }} {{end}}
{{ if isset .Params "categories" }}
{{ $total := len .Params.categories }}
{{ if gt $total 0 }}
—
{{ $total := sub $total 1 }}
{{ range $i, $cat := sort $.Params.categories }}
<a class="meta" href="{{ "/categories/" | relURL }}{{ $cat | urlize }}">{{ $cat | upper }}</a>{{ if lt $i $total }}, {{ end }}
{{ end }}
{{ end }}
{{ end }}
</h6>
</div>
{{ end }}
</section>
<section id="content-pane" class="">
<div class="col-md-12 text-justify content">
{{ if and ( ne .Params.toc false) (gt .WordCount 300 ) }}
{{ .TableOfContents }}
{{ end }}
{{ .Content }}
</div>
</section>
<section id="tag-pane" class="meta">
{{ if ne .Params.showpagemeta false }}
<div class="col-md-12">
<h6 class="text-right meta">
{{ if isset .Params "tags" }}
{{ $total := len .Params.tags }}
{{ if gt $total 0 }}
TAGS:
{{ $subtotal := sub $total 1 }}
{{ range $i, $tag := sort $.Params.tags }}
<a class="meta" href="{{ "/tags/" | relURL }}{{ $tag | urlize }}">{{ $tag | upper }}</a>{{ if lt $i $subtotal }}, {{ end }}
{{ end }}
{{ end }}
{{ end }}
</h6>
</div>
{{ end }}
</section>
|