binario/layouts/partials/entry/meta/categories.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

11 lines
No EOL
406 B
HTML

{{- if .Params.categories }}
<span class="entry__meta-categories meta-categories">
<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>
</span>
{{- end }}