blog/layouts/_default/single.html
Lucien Cartier-Tilet 2a143729c2
All checks were successful
continuous-integration/drone/push Build is passing
Revert "Yet another update, hopefully of better quality"
This reverts commit 8afa44019d.
2022-11-30 02:08:40 +01:00

36 lines
1.1 KiB
HTML

{{ 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">
{{ template "_internal/disqus.html" . }}
</div>
</article>
<script defer src="https://commento.phundrak.com/js/commento.js"></script>
<div id="commento"></div>
{{ end }}