fix: Gemini lastmod and published date
parent
0c85b94f9f
commit
2e43086436
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue