hugo-theme-flat/layouts/partials/side-categories.html
2022-05-16 18:46:25 +08:00

13 lines
309 B
HTML

<div class="side-categories">
<h2>Categories</h2>
<hr />
<ul>
{{ range $key, $_ := .Site.Taxonomies.categories }}
<li>
<a href="{{ "/categories/" | relURL }}{{ $key | urlize }}">{{ $key }}({{ .Count }})</a>
</li>
{{ end }}
</ul>
</div>