Fix Last modified date.

This commit is contained in:
tastytea 2020-12-28 21:08:09 +01:00
parent b5b164efc8
commit ede80b634c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@
{{- .Date.Format (default "01-02-2006" .Site.Params.dateFmt) -}}
</time>;
{{- if ne .Date .Lastmod }}
<span>Last modified:</span> &#x5b;
<time datetime="{{- .Lastmod.Format "2006-01-02T15:04:05Z07:00" -}}">
{{ .Lastmod.Format (default "01-02-2006" .Site.Params.dateFmt) }}
<span>Last modified:</span>
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Lastmod.Format (default "01-02-2006" .Site.Params.dateFmt) -}}
</time>;
{{- end }} <!-- if ne .Date .Lastmod -->
{{- end }} <!-- if $showdate -->