1
0
mirror of https://git.earne.link/earnestma/dracublog synced 2025-04-30 05:08:00 +02:00
dracublog/layouts/index.gmi
earnest ma 55db714561
feat: Add support for gemini
Closes #1
Closes #2
2021-02-10 09:24:44 -05:00

15 lines
439 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 }}