1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 01:42:10 +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:
rohan kumar 2020-11-25 22:38:16 -08:00
parent 1c75fe501b
commit 55543cf9b2
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 }}