dracublog/layouts/index.gmi

14 lines
441 B
Plaintext
Raw Normal View History

{{ trim (readFile (replace (replace $.File.Path ".md" ".gmi") ".html" ".gmi")) "\n" | safeHTML }}
## Blog Posts
2021-02-11 23:33:35 -05:00
{{ with .OutputFormats.Get "html" -}}
=> {{ .Permalink }} More posts on WWW
2021-02-11 23:33:35 -05:00
{{- 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 }}