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

17 lines
577 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:59:59 +02:00
{{- end -}}
2020-03-03 18:56:59 +01:00
</bt>
2020-04-28 16:50:15 +02:00
<bt>TAGS :&nbsp;</bt>
2020-04-28 16:59:59 +02:00
<ul class="tag-list">
2020-04-28 16:50:15 +02:00
{{- range .Params.tags -}}
2020-04-28 16:59:59 +02:00
{{- $url := print "/tags/" (. | urlize) "/" -}}
<li><a class="tag" href={{- $url | relLangURL -}}><bt>{{- . -}}</bt></a></li>
2020-04-28 16:50:15 +02:00
{{- end -}}
2020-04-28 16:59:59 +02:00
</ul>
2020-04-28 16:50:15 +02:00
</div>
2020-03-03 18:56:59 +01:00
{{- end -}}