Use RFC3339 format for datetime property
This commit is contained in:
parent
077ae0345e
commit
b8d4e82d00
1 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
||||||
{{- if not .Date.IsZero }}
|
{{- if not .Date.IsZero }}
|
||||||
<time class="post__meta-published meta-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format ( .Site.Params.dateFormat | default "January 02, 2006" ) }}</time>
|
<time class="post__meta-published meta-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||||
|
{{- .Date.Format (.Site.Params.dateFormat | default "January 02, 2006") -}}
|
||||||
|
</time>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if ne .Date .Lastmod }}
|
{{- if ne .Date .Lastmod }}
|
||||||
<time class="post__meta-lastmod meta-lastmod" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}">{{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateFormat | default "January 02, 2006" ) }}</time>
|
<time class="post__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>
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in a new issue