Only show updated at when the published data is different
This commit is contained in:
parent
b3b6b8de1b
commit
7845178336
1 changed files with 3 additions and 1 deletions
|
|
@ -9,7 +9,9 @@
|
|||
{{- .Date.Format "2006-01-02" -}}
|
||||
|
||||
{{- if $.Site.Params.showLastUpdated -}}
|
||||
[{{- or $.Site.Params.updatedDatePrefix "Updated" -}} :: {{- .Lastmod.Format "2006-01-02" -}}]
|
||||
{{- if not (eq .Lastmod .Date) -}}
|
||||
[{{- or $.Site.Params.updatedDatePrefix "Updated" -}} :: {{- .Lastmod.Format "2006-01-02" -}}]
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</time>
|
||||
{{- end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue