binario/layouts/partials/post_meta/categories.html
2018-11-15 14:21:34 -05:00

5 lines
No EOL
386 B
HTML

{{- if .Params.categories }}
<span class="post__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 }}