binario/layouts/partials/entry/meta/categories.html

11 lines
407 B
HTML
Raw Normal View History

{{- 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 }}