binario/layouts/partials/entry/meta/date.html

10 lines
498 B
HTML
Raw Permalink Normal View History

2018-11-15 19:21:34 +00:00
{{- if not .Date.IsZero }}
<time class="entry__meta-published meta-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date.Format (.Site.Params.dateFormat | default "January 02, 2006") -}}
</time>
2018-11-15 19:21:34 +00:00
{{- end }}
{{- if ne .Date .Lastmod }}
<time class="entry__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>
2018-11-15 19:21:34 +00:00
{{- end }}