mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-01 22:48:14 +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/_default
|
@ -10,7 +10,7 @@
|
|||
<article>
|
||||
{{if .Title}}<h1>{{ .Title }}</h1>{{end}}
|
||||
<p class="meta">
|
||||
Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}.
|
||||
Last updated {{ partial "date-fmt.html" .}}
|
||||
{{ partial "github.html" . }}
|
||||
</p>
|
||||
<ul class="tags">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue