hugo-stanley/layouts/partials/article-labels.html

17 lines
577 B
HTML

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