mirror of
https://github.com/Vimux/Binario.git
synced 2025-04-21 20:59:06 +00:00
dont display last modified date if on zero value
This commit is contained in:
parent
2e5cfdbdb9
commit
6f520aae2d
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
{{- .Date.Format (.Site.Params.dateFormat | default "January 02, 2006") -}}
|
||||
</time>
|
||||
{{- end }}
|
||||
{{- if ne .Date .Lastmod }}
|
||||
{{- if and (not .Lastmod.IsZero) (ne .Date .Lastmod) }}
|
||||
<time class="entry__meta-lastmod meta-lastmod" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||
{{- T "meta_lastmod" }}: {{ .Lastmod.Format (.Site.Params.dateFormat | default "January 02, 2006") -}}
|
||||
</time>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue