mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
My gemlog deserves sane date formats too!
In the name of ISO 8601, RFC 3339, and sorting by number: ramen.
This commit is contained in:
parent
1c75fe501b
commit
55543cf9b2
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
## Gemlog posts
|
||||
{{ range (where .Site.RegularPages "Section" "posts") }}
|
||||
{{- if .OutputFormats.Get "gemtext" }}
|
||||
=> {{replace .Permalink "/gemini" "" 1}} {{.Date.Format "January 2, 2006"}}: {{.Title | safeHTML}}{{ end }}{{ end }}
|
||||
=> {{replace .Permalink "/gemini" "" 1}} {{ .Date.Format "2006-01-02" }}: {{.Title | safeHTML}}{{ end }}{{ end }}
|
||||
|
||||
=> posts/index.xml RSS feed
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# {{$.Title | safeHTML}}
|
||||
{{.Date.Format "January 2, 2006"}}
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
|
||||
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue