Skip to content
Permalink
Browse files

Use RFC3339 format for datetime property

  • Loading branch information
Vimux committed Feb 13, 2020
1 parent 56d4a78 commit afe522d22978fde86f47231c00da99cee3887eb6
Showing with 2 additions and 2 deletions.
  1. +2 −2 layouts/partials/post_meta/date.html
@@ -1,9 +1,9 @@
{{- if not .Date.IsZero }}
<div class="meta__item-datetime meta__item">
{{ partial "svg/time.svg" (dict "class" "meta__icon") }}
<time class="meta__text" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format ( .Site.Params.dateformat | default "January 02, 2006") }}</time>
<time class="meta__text" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format ( .Site.Params.dateformat | default "January 02, 2006") }}</time>
{{- if ne .Date .Lastmod }}
<time class="meta__text" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}"> ({{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006") }})</time>
<time class="meta__text" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}"> ({{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006") }})</time>
{{- end }}
</div>
{{ end -}}

0 comments on commit afe522d

Please sign in to comment.
You can’t perform that action at this time.