From 54fe61438e5fa3e5751671009617928bd3c538c3 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Wed, 16 Aug 2023 12:47:53 +0200 Subject: [PATCH] style: remove unused `font_size_{{ .Count }}` in `taxonomy` widget --- layouts/partials/widget/taxonomy.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/partials/widget/taxonomy.html b/layouts/partials/widget/taxonomy.html index a5862ae..baf5171 100644 --- a/layouts/partials/widget/taxonomy.html +++ b/layouts/partials/widget/taxonomy.html @@ -8,22 +8,22 @@ {{- if not (and $isTaxonomyPage $hideInTaxonomyPage) -}}
- {{ partial "helper/icon" (default "tag" .Params.icon) }} + {{- partial "helper/icon" (default "tag" .Params.icon) -}}

- {{ default $taxonomyPage.Title .Params.title }} + {{- default $taxonomyPage.Title .Params.title -}}

- {{ $pages := index $context.Site.Taxonomies .Params.type }} - {{ $pagesSorted := $pages.ByCount }} - {{ range first $limit $pagesSorted }} - - {{ .Page.Title }} + {{- $pages := index $context.Site.Taxonomies .Params.type -}} + {{- $pagesSorted := $pages.ByCount -}} + {{- range first $limit $pagesSorted -}} + + {{- .Page.Title -}} - {{ end }} + {{- end -}}
{{- end -}}