1
0
mirror of https://git.earne.link/earnestma/dracublog synced 2025-04-05 03:19:04 +02:00
dracublog/layouts/index.gmi
2021-02-11 23:35:49 -05:00

14 lines
441 B
Plaintext

{{ trim (readFile (replace (replace $.File.Path ".md" ".gmi") ".html" ".gmi")) "\n" | safeHTML }}
## Blog Posts
{{ with .OutputFormats.Get "html" -}}
=> {{ .Permalink }} More posts on WWW
{{- end -}}
{{ range (where .Site.RegularPages "Section" "blog") }}
{{- if .OutputFormats.Get "gemtext" }}
=> {{ replace .Permalink "/gemini" "" 1 }} {{ .Date.Format "Jan 02, 2006" }}: {{ .Title | safeHTML }}{{ end }}{{ end }}
{{ .Site.Copyright }}