fix: Gemini lastmod and published date

main
earnest ma 2021-02-11 23:34:25 -05:00
parent 0c85b94f9f
commit 2e43086436
No known key found for this signature in database
GPG Key ID: 6B361FA81C5FB695
1 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,10 @@
# {{ $.Title | safeHTML }}
{{ if .Lastmod }}{{ if not (eq .Lastmod .Date )}}
Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod.Local }}.
{{ end }}
{{ else }}
{{ if ne .Lastmod .Date -}}
Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod }}.
{{- else -}}
Published on {{ .Date.Format "Jan 02, 2006" }}.
{{ end }}
{{- end }}
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}