porcellis.com

ref: master

layouts/_partials/time.html


1
2
3
4
{{- /* Human-readable date uses the layout declared by the current language in
       i18n (en: ISO, pt-br: DD/MM/YYYY); the datetime attribute stays ISO 8601
       so machines always get an unambiguous value. */ -}}
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTMLAttr }}">{{ .Date | time.Format (i18n "dateFormat") }}</time>