blob: 53cc794d43c9b8cdfa7da184c31c238b3d4bdd72 (
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
|
{{ 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"></script>
<div id="commento"></div>
</div>
</article>
{{ end }}
|