morgan.mcmillian.dev/templates/page.html

23 lines
690 B
HTML

{{ define "main" }}
<main>
<h1>{{ .Title }}</h1>
{{- if not .Date.IsZero }}
<small>{{ .Date.Format "2006-01-02" }} on
{{ if .Params.origin }} {{ .Params.origin }}
{{ else }} <a href="/">{{ site.Title }}</a>
{{ end }}
</small>{{ end }}
{{ .Content | safeHTML }}
</main>
<footer>
<small>
This work is licensed under a <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA-4.0 license</a>.
<a href="https://git.sr.ht/~thrrgilag/morgan.mcmillian.dev">Source code</a>
<br>
Have a comment on one of my posts?
<a href="https://lists.sr.ht/~thrrgilag/public-inbox">Send an email</a>
</small>
</footer>
{{ end }}