diff --git a/layouts/partials/widget/categories.html b/layouts/partials/widget/categories.html index b56f2bc..10c8a35 100644 --- a/layouts/partials/widget/categories.html +++ b/layouts/partials/widget/categories.html @@ -1,14 +1,16 @@ +{{- $context := .Context -}} +{{- $limit := default 10 .Params.limit -}}
-
- {{ partial "helper/icon" "categories" }} -
-

{{ T "widget.categoriesCloud.title" }}

+
+ {{ partial "helper/icon" "categories" }} +
+

{{ T "widget.categoriesCloud.title" }}

-
- {{ range first .Site.Params.widgets.categoriesCloud.limit .Site.Taxonomies.categories.ByCount }} - - {{ .Page.Title }} - - {{ end }} -
+
+ {{ range first $limit $context.Site.Taxonomies.categories.ByCount }} + + {{ .Page.Title }} + + {{ end }} +