dracublog/layouts/blog/single.html

41 lines
783 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>
<a href="#"><button class="top">Back to top</button></a>
<!--<a href="sc"><button class="top">Load comments (Mastodon)</button></a>-->
{{ if $.Site.Params.openring }}
{{ partial "openring-out" . -}}
{{ end }}
{{ end }}