mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-06-22 08:44:36 +00:00
fix: give precedence to date created over last modified if defined (#101)
This commit is contained in:
7
layouts/partials/date-fmt.html
Normal file
7
layouts/partials/date-fmt.html
Normal file
@ -0,0 +1,7 @@
|
||||
{{if .Date}}
|
||||
{{.Date.Format "Jan 2, 2006"}}
|
||||
{{else if .Lastmod}}
|
||||
{{.Lastmod.Format "Jan 2, 2006"}}
|
||||
{{else}}
|
||||
Unknown
|
||||
{{end}}
|
Reference in New Issue
Block a user