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

19 lines
587 B
HTML
Raw Normal View History

2020-03-03 18:56:59 +01:00
{{- if or .Params.categories .Params.tags -}}
2020-04-28 16:50:15 +02:00
<div>
2020-03-03 18:56:59 +01:00
<bt>CATÉGORIES :&nbsp;
{{- range .Params.categories -}}
{{- $url := print "/categories/" (. | urlize) "/" -}}
<a class="category" href={{- $url | relLangURL -}}>{{- . -}}</a> -
2020-04-28 16:50:15 +02:00
{{- end -}}
2020-03-03 18:56:59 +01:00
</bt>
2020-04-28 16:50:15 +02:00
<bt>TAGS :&nbsp;</bt>
<ul class="tag-list">
{{- range .Params.tags -}}
2020-03-03 18:56:59 +01:00
{{- $url := print "/tags/" (. | urlize) "/" -}}
2020-04-28 16:50:15 +02:00
<li><a $url -}} class="tag" href={{- relLangURL |>
<bt>{{- . -}}</bt>
</a></li>
{{- end -}}
</ul>
</div>
2020-03-03 18:56:59 +01:00
{{- end -}}