mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-24 08:39:01 +00:00
fix: give precedence to date created over last modified if defined (#101)
This commit is contained in:
parent
dff5ae0d4d
commit
e15e39155d
4 changed files with 10 additions and 2 deletions
layouts/partials
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}}
|
Loading…
Add table
Add a link
Reference in a new issue