binario/layouts/partials/post_meta.html

11 lines
856 B
HTML
Raw Normal View History

2018-03-04 07:21:14 +00:00
{{- 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 }}
2018-03-10 08:04:24 +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-03-04 07:21:14 +00:00
{{- end }}
{{- if .Params.categories }}
<span class="post__meta-categories meta-categories">
2018-03-10 08:04:24 +00:00
<span class="meta-categories__list">{{ T "meta_categories" }}: {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}<a class="meta-categories__link" href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}" rel="category">{{ . }}</a>{{ end }}</span>
2018-03-04 07:21:14 +00:00
</span>
{{- end }}