mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
style: remove unused font_size_{{ .Count }}
in taxonomy
widget
This commit is contained in:
parent
0634317a55
commit
54fe61438e
@ -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 -}}
|
||||
|
Loading…
Reference in New Issue
Block a user