hugo-theme-flat/layouts/partials/side-categories.html
2022-09-04 19:11:04 +08:00

13 lines
308 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>