diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index b723dea..788a7c4 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -158,11 +158,15 @@ params: - type: archives params: limit: 5 - - type: categories + - type: taxonomy params: + type: categories + icon: categories limit: 10 - - type: tag-cloud + - type: taxonomy params: + type: tags + icon: tag limit: 10 page: - type: toc diff --git a/layouts/partials/sidebar/right.html b/layouts/partials/sidebar/right.html index 0b590fa..d2a6ae8 100644 --- a/layouts/partials/sidebar/right.html +++ b/layouts/partials/sidebar/right.html @@ -1,17 +1,8 @@ {{- $scope := default "homepage" .Scope -}} {{- $context := .Context -}} -{{- $isCategoriesPage := and (eq $context.Kind "taxonomy") (eq $context.Type "categories") }} -{{- $isTagsPage := and (eq $context.Kind "taxonomy") (eq $context.Type "tags") }} {{- with (index .Context.Site.Params.widgets $scope) -}}