mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-04 17:02:11 +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.
18 lines
606 B
Text
18 lines
606 B
Text
# {{$.Title | safeHTML}}
|
|
{{ $lastmod := .Lastmod -}}
|
|
{{ if lt .Date $lastmod -}}
|
|
Originally posted {{ .Date.Format "2006-01-02" }}. Last updated {{ .Lastmod.Format "2006-01-02" }}.
|
|
{{ else -}}
|
|
Posted {{ .Date.Format "2006-01-02" }}.
|
|
{{ end }}
|
|
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
|
|
|
---
|
|
|
|
=> {{ .Site.Params.logUrlPrefix }}content/{{ .File.Path }} Article changelog
|
|
=> / Homepage{{ with .OutputFormats.Get "html" }}
|
|
=> {{.Permalink}} View “{{$.Title | safeHTML}}” on the WWW
|
|
{{- end }}
|
|
=> {{ .Site.Params.src }} Gemini capsule source code
|
|
|
|
{{ .Site.Params.copyright }}
|