blob: 4998c44964606b9c825fd901f0b648e28d25bc51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{{- $categories := .Site.Taxonomies.categories }}
{{- if gt (len $categories) 0 }}
<div class="widget-categories widget">
<h4 class="widget__title">{{ T "categories_title" }}</h4>
<div class="widget__content">
<ul class="widget__list">
{{- range $name, $taxonomy := $categories }}
{{- with $.Site.GetPage (printf "/categories/%s" $name) }}
<li class="widget__item">
<a class="widget__link" href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{- end }}
{{- end }}
</ul>
</div>
</div>
{{- end }}
|