mirror of
https://github.com/Vimux/Binario.git
synced 2024-12-24 21:43:33 +00:00
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 }}
|
||||
<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 }}
|
||||
{{- 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 }}
|
Loading…
Reference in a new issue