blog/layouts/_default/single.html

31 lines
982 B
HTML
Raw Permalink Normal View History

2020-06-22 10:22:19 +00:00
{{ 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" }}
2020-06-22 10:22:19 +00:00
</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 -}}
2020-06-22 10:22:19 +00:00
</div>
</header>
<div class="post-content">{{ .Content }}</div>
<div class="post-footer">
<script defer src="https://comentario.phundrak.com/comentario.js"></script>
<comentario-comments></comentario-comments>
</div>
</article>
2020-06-22 10:22:19 +00:00
{{ end }}