binario/layouts/partials/post_meta/date.html

6 lines
472 B
HTML
Raw Normal View History

2018-11-15 19:21:34 +00:00
{{- if not .Date.IsZero }}
2019-07-16 15:07:46 +00:00
<time class="post__meta-published meta-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format ( .Site.Params.dateFormat | default "January 02, 2006" ) }}</time>
2018-11-15 19:21:34 +00:00
{{- end }}
{{- if ne .Date .Lastmod }}
2019-07-16 15:07:46 +00:00
<time class="post__meta-lastmod meta-lastmod" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}">{{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateFormat | default "January 02, 2006" ) }}</time>
2018-11-15 19:21:34 +00:00
{{- end }}