blob: 79d5980acfb5a4ccdb1e4a5ad650be711dc37b69 (
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
|
{{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>
<div>Share via
<a title='email' href='mailto:?subject={{.Title}}?body={{.Permalink}}'><button class='btn btn-sm btn-light'>{{ ":email:" | emojify }}</button></a>
<!--<a title='twitter'><button class='btn btn-light btn-sm'>{{":bird:" | emojify }}</button></a>
</div>-->
<br><br>
<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}}
{{ if .Site.Params.search.enabled}}
{{partial "search.html" .}}
{{end}}
{{end}}
|