mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +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) -}}
|
{{- if not (and $isTaxonomyPage $hideInTaxonomyPage) -}}
|
||||||
<section class="widget tagCloud">
|
<section class="widget tagCloud">
|
||||||
<div class="widget-icon">
|
<div class="widget-icon">
|
||||||
{{ partial "helper/icon" (default "tag" .Params.icon) }}
|
{{- partial "helper/icon" (default "tag" .Params.icon) -}}
|
||||||
</div>
|
</div>
|
||||||
<h2 class="widget-title section-title">
|
<h2 class="widget-title section-title">
|
||||||
<a class="widget-link" href="{{ $taxonomyPage.RelPermalink }}">
|
<a class="widget-link" href="{{ $taxonomyPage.RelPermalink }}">
|
||||||
{{ default $taxonomyPage.Title .Params.title }}
|
{{- default $taxonomyPage.Title .Params.title -}}
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="tagCloud-tags">
|
<div class="tagCloud-tags">
|
||||||
{{ $pages := index $context.Site.Taxonomies .Params.type }}
|
{{- $pages := index $context.Site.Taxonomies .Params.type -}}
|
||||||
{{ $pagesSorted := $pages.ByCount }}
|
{{- $pagesSorted := $pages.ByCount -}}
|
||||||
{{ range first $limit $pagesSorted }}
|
{{- range first $limit $pagesSorted -}}
|
||||||
<a href="{{ .Page.RelPermalink }}" class="font_size_{{ .Count }}">
|
<a href="{{ .Page.RelPermalink }}">
|
||||||
{{ .Page.Title }}
|
{{- .Page.Title -}}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user