binario/layouts/partials/post_meta/date.html

10 lines
496 B
HTML
Raw Normal View History

2018-11-15 19:21:34 +00:00
{{- if not .Date.IsZero }}
<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>
2018-11-15 19:21:34 +00:00
{{- end }}
{{- if ne .Date .Lastmod }}
<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>
2018-11-15 19:21:34 +00:00
{{- end }}