dracublog/layouts/blog/single.html

40 lines
736 B
HTML
Raw Normal View History

2021-02-05 11:36:58 -05:00
{{ define "main" }}
<h1>{{ .Title }}</h1>
<p>
&#8226; Published on
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format "Jan 02, 2006" }}
</time>
{{ if .Lastmod }}{{ if not (eq .Lastmod .Date )}}
<i>
(<b>updated</b> {{ dateFormat "2006-01-02" .Lastmod.Local }})
</i>
{{ end }}{{ end }}
{{ with .Page.Params.Authors }}
{{ partial "taxonomy-authors.html" . -}}
{{ end }}
</p>
<content>
{{ .Content }}
</content>
<p>
<b>Tags:</b>
{{ range (.GetTerms "tags") }}
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
{{ end }}
</p>
{{ partial "fedi-comments" . }}
2021-02-05 11:36:58 -05:00
{{ if $.Site.Params.openring }}
{{ partial "openring-out" . -}}
{{ end }}
<a href="#"><button class="top">Back to top</button></a>
2021-02-05 11:36:58 -05:00
{{ end }}