sillon-fictionnel/themes/writeonly/layouts/partials/shared/post-categories.html

15 lines
783 B
HTML

<div class="text-center">
{{ with .Params.Categories }}
<span class="mx-2">
{{ range . }}
<a class="badge bg-primary text-decoration-none" href="{{ site.BaseURL }}categories/{{ . | urlize}}/">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-tags-fill me-1" viewBox="0 0 16 16">
<path d="M2 2a1 1 0 0 1 1-1h4.586a1 1 0 0 1 .707.293l7 7a1 1 0 0 1 0 1.414l-4.586 4.586a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 2 6.586V2zm3.5 4a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"/>
<path d="M1.293 7.793A1 1 0 0 1 1 7.086V2a1 1 0 0 0-1 1v4.586a1 1 0 0 0 .293.707l7 7a1 1 0 0 0 1.414 0l.043-.043-7.457-7.457z"/>
</svg>
{{ . }}
</a>
{{ end }}
</span>
{{ end }}
</div>