binario/layouts/partials/entry/meta/categories.html
Noam Lerner 69b90178c1 Add tags support to entry/meta
This commit adds support in having tags in entry.meta.
This includes:
- Updating the README
- Adding values for tags across multiple languages (en, fr, it, pt-br, pt)
- Moving from span to div in entry/meta/categories to make sure each one of
  'tags' and 'categories' sections is in a separate line.
2022-03-19 14:52:57 +02:00

11 lines
No EOL
405 B
HTML

{{- if .Params.categories }}
<div 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>
</div>
{{- end }}