thrrgilag.net/themes/binario/layouts/partials/post_meta/date.html
Morgan McMillian 022c04d286 new site theme
2019-09-07 12:40:58 -07:00

6 lines
No EOL
472 B
HTML

{{- if not .Date.IsZero }}
<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>
{{- end }}
{{- if ne .Date .Lastmod }}
<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>
{{- end }}