hugo-theme-flat/layouts/partials/side-categories.html
2022-04-27 21:54:00 +08:00

12 lines
299 B
HTML

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