style: remove unused font_size_{{ .Count }} in taxonomy widget

This commit is contained in:
Jimmy Cai 2023-08-16 12:47:53 +02:00
parent 0634317a55
commit 54fe61438e

View File

@ -8,22 +8,22 @@
{{- if not (and $isTaxonomyPage $hideInTaxonomyPage) -}}
<section class="widget tagCloud">
<div class="widget-icon">
{{ partial "helper/icon" (default "tag" .Params.icon) }}
{{- partial "helper/icon" (default "tag" .Params.icon) -}}
</div>
<h2 class="widget-title section-title">
<a class="widget-link" href="{{ $taxonomyPage.RelPermalink }}">
{{ default $taxonomyPage.Title .Params.title }}
{{- default $taxonomyPage.Title .Params.title -}}
</a>
</h2>
<div class="tagCloud-tags">
{{ $pages := index $context.Site.Taxonomies .Params.type }}
{{ $pagesSorted := $pages.ByCount }}
{{ range first $limit $pagesSorted }}
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
{{ .Page.Title }}
{{- $pages := index $context.Site.Taxonomies .Params.type -}}
{{- $pagesSorted := $pages.ByCount -}}
{{- range first $limit $pagesSorted -}}
<a href="{{ .Page.RelPermalink }}">
{{- .Page.Title -}}
</a>
{{ end }}
{{- end -}}
</div>
</section>
{{- end -}}