hugo-stanley/layouts/partials/article-labels.html
2020-04-28 16:50:15 +02:00

19 lines
587 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 $url -}} class="tag" href={{- relLangURL |>
<bt>{{- . -}}</bt>
</a></li>
{{- end -}}
</ul>
</div>
{{- end -}}