blob: 2584aafd59b5587a27505859bf8d966eb68ee0c5 (
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
|
{{ define "main" }}
<article class="post">
<header class="post-header">
<h1 class ="post-title">{{ .Title }}</h1>
<div class="post-meta">
<div>
{{ partial "icon.html" (dict "ctx" $ "name" "calendar") }}
{{ .PublishDate.Format "Jan 2, 2006" }}
</div>
<div>
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }}
{{ .ReadingTime }} min read
</div>
{{- with .Params.tags -}}
<div>
{{ partial "icon.html" (dict "ctx" $ "name" "tag") }}
{{ range . -}}
{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
<a class="tag" href="{{ .Permalink }}">{{ .Title }}</a>
{{- end -}}
{{- end -}}
</div>
{{- end -}}
</div>
</header>
<div class="post-content">
{{ .Content }}
</div>
<div class="post-footer">
<script defer
src="https://commento.rogs.me/js/commento.js"
data-css-override="/commento-new.css"
data-auto-init="true">
</script>
<div id="commento"></div>
</div>
</article>
{{ end }}
|