blob: 8bbd924f7ee9e83debd7fd8a0a612971d117c130 (
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
|
{{define "main"}}
{{ if eq .Section "post"}}
<section class="container text-justified mt-3">
<h2 class="font-weight-bold">{{.Title}}</h2>
<small class="text-secondary mb-5">Posted on {{ .PublishDate.Format "January 2, 2006" }} | {{.ReadingTime}} minute read</small>
<div class="text-monospace mt-2">
{{ .Content }}
</div>
<code>tags:
{{- range .Params.tags -}}
<span class='badge badge-dark'><a class='text-white' href='{{ "tags/" | absURL }}{{ . | lower }}'>{{ . }}</a></span>
{{ end }}
</code>
<br>
{{ if .Site.Params.disqus }}
{{ template "_internal/disqus.html" . }}
{{end}}
</section>
{{else}}
<section class="container text-justified mt-3">
<h2 class="text-center mb-4">{{.Title}}</h2>
<div class="text-monospace">
{{ .Content }}
</div>
</section>
{{end}}
{{end}}
|