binario/layouts/partials/entry/meta/date.html
vimux 7bffa43920
BREAKING CHANGE: rename Post → Entry
* .Site.Params.post_meta → .Site.Params.Entry.meta
* .Site.Params.toc → .Site.Params.Entry.toc
* .Site.Params.tocOpen → .Site.Params.Entry.tocOpen
2020-02-11 09:27:01 -05:00

10 lines
No EOL
498 B
HTML

{{- 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>
{{- 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>
{{- end }}