blob: f36d519dfaad822c82d0bb3990dd5ab4ccc590b6 (
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
|
{{define "main"}}
{{ if eq .Section "post"}}
<section class="container text-monospace text-justified mt-3">
<h2>{{.Title}}</h2>
<small class="text-secondary">Posted on {{ .PublishDate.Format "January 2, 2006" }} | {{.ReadingTime}} minute read</small>
{{ .Content }}
<small>Please mail your comments to <a href="{{.Site.Params.email}}">{{.Site.Params.email}}</a></small><br>
<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" . }}
{{end}}
</div>
</section>
{{else}}
<section class="container text-monospace text-justified mt-3">
<h2 class="text-center">{{.Title}}</h2>
{{ .Content }}
</section>
{{end}}
{{end}}
|