diff options
Diffstat (limited to 'layouts/partials/widgets/categories.html')
-rw-r--r-- | layouts/partials/widgets/categories.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/widgets/categories.html b/layouts/partials/widgets/categories.html index 12f49fd..791dc32 100644 --- a/layouts/partials/widgets/categories.html +++ b/layouts/partials/widgets/categories.html @@ -2,10 +2,11 @@ <h3 class="widget-title">{{with .Site.Data.l10n.widgets.categories.title}}{{.}}{{end}}</h3>
<ul>
{{ range $name, $items := .Site.Taxonomies.categories }}
+ {{ with site.GetPage (printf "/%s/%s" "categories" ($name | urlize)) }}
<li class="cat-item">
- {{ $url := printf "%s/%s" "categories" ($name | urlize)}}
- <a href="{{ $url | absURL }}">{{ $name | title }}</a> ({{ len $items }})
+ <a href="{{ .Permalink }}">{{ $name | title }}</a> ({{ len $items }})
</li>
{{ end }}
+ {{ end }}
</ul>
</aside>
|