dracublog/layouts/blog/single.html

41 lines
807 B
HTML
Raw Normal View History

2021-02-05 11:36:58 -05:00
{{ define "main" }}
<h1>{{ .Title }}</h1>
<ul>
<li>
Published on {{ .Date.Format "Jan 02, 2006" }}
2021-02-05 11:36:58 -05:00
{{ if .Lastmod }}{{ if not (eq .Lastmod .Date )}}
<i>(<b>updated</b> {{ dateFormat "2006-01-02" .Lastmod.Local }})</i>
2021-02-05 11:36:58 -05:00
{{ end }}{{ end }}
{{ with .Page.Params.Authors }}
{{ partial "taxonomy-authors.html" . -}}
{{ end }}
</li>
{{ with .OutputFormats.Get "gemtext" }}
<li>Read via <a href="{{replace .Permalink "/gemini" "" 1 | safeURL}}">Gemini</a></li>
{{- end }}
</ul>
2021-02-05 11:36:58 -05:00
<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 }}