mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-18 14:52:10 +00:00
758460f258
Add the date last updated to articles, if articles have been updated since initial publication. Incldue a link to the article changelog.
25 lines
1.3 KiB
HTML
25 lines
1.3 KiB
HTML
{{ define "main" }}
|
||
<article>
|
||
<header id="post-header">
|
||
<h1>{{ .Title }}</h1>
|
||
{{ $lastmod := .Lastmod -}}
|
||
{{ if lt .Date $lastmod -}}
|
||
Originally posted <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>. Last updated <time datetime="{{ $lastmod.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Lastmod.Format "2006-01-02" }}</time>. <a href="{{ .Site.Params.logUrlPrefix }}content/{{ .File.Path }}">Changelog</a>
|
||
{{ else -}}
|
||
Posted <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>.
|
||
{{ end }}
|
||
</header>
|
||
{{ .Content -}}
|
||
</article>
|
||
<br>
|
||
<hr>
|
||
<footer class="comment">
|
||
{{ with .OutputFormats.Get "gemtext" -}}
|
||
<p>
|
||
View this article on <a href="{{replace .Permalink "/gemini" "" 1 | safeURL}}">my Gemini capsule</a>
|
||
</p>
|
||
{{ end -}}
|
||
<p><a href="mailto:~seirdy/seirdy.one-comments@lists.sr.ht">Send an email</a> to leave a comment in the <a href="https://lists.sr.ht/~seirdy/seirdy.one-comments">mailing list</a> for seirdy.one. You'll have to send in plain text; please <a href="https://useplaintext.email/">learn how.</a>. Alternatively, send your email <a href="mailto:seirdy@seirdy.one">directly to me</a>; it won’t show up on the mailing list, but I’ll see it.</p>
|
||
</footer>
|
||
<hr>
|
||
{{ end }}
|