fix: Gemini lastmod and published date
parent
0c85b94f9f
commit
2e43086436
|
@ -1,11 +1,10 @@
|
||||||
# {{ $.Title | safeHTML }}
|
# {{ $.Title | safeHTML }}
|
||||||
|
|
||||||
{{ if .Lastmod }}{{ if not (eq .Lastmod .Date )}}
|
{{ if ne .Lastmod .Date -}}
|
||||||
Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod.Local }}.
|
Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod }}.
|
||||||
{{ end }}
|
{{- else -}}
|
||||||
{{ else }}
|
|
||||||
Published on {{ .Date.Format "Jan 02, 2006" }}.
|
Published on {{ .Date.Format "Jan 02, 2006" }}.
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue