hugo-stanley/layouts/partials/article-labels.html
2020-03-03 18:56:59 +01:00

16 lines
500 B
HTML

{{- if or .Params.categories .Params.tags -}}
<p>
<bt>CATÉGORIES :&nbsp;
{{- range .Params.categories -}}
{{- $url := print "/categories/" (. | urlize) "/" -}}
<a class="category" href={{- $url | relLangURL -}}>{{- . -}}</a> -
{{- end -}}
</bt>
<bt>TAGS :&nbsp;
{{- range .Params.tags -}}
{{- $url := print "/tags/" (. | urlize) "/" -}}
<a class="tag" href={{- $url | relLangURL -}}>{{- . -}}</a>
{{- end -}}
</bt>
</p>
{{- end -}}