blob: 559e392869bec2a0f647c4278d92c0d49ad9f59e (
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"}}
{{ if eq .Section "post"}}
<section class="container text-monospace text-justified mt-3">
<h2>{{.Title}}</h2>
<small class="text-secondary mb-5">Posted on {{ .PublishDate.Format "January 2, 2006" }} | {{.ReadingTime}} minute read</small>
<p>{{ .Content }}</p>
<code>tags:
{{- range .Params.tags -}}
<span class='badge badge-dark'><a class='text-white' href='{{ "tags/" | absURL }}{{ . | lower }}'>{{ . }}</a></span>
{{ end }}
</code>
<div class="container mt-2" id="comments">
{{ if .Site.Params.disqus }}
{{ template "_internal/disqus.html" . }}
{{ else }}
<small class="mt-1">Please mail your comments to <a href="{{.Site.Params.email}}">{{.Site.Params.email}}</a></small><br>
{{end}}
</div>
</section>
{{else}}
<section class="container text-monospace text-justified mt-3">
<h2 class="text-center">{{.Title}}</h2>
{{ .Content }}
</section>
{{end}}
{{end}}
|