Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tag_cloud.html « widgets « partials « layouts - gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e2bc7a7613c9541c6cf724fa561bae3322004648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ if .Site.Params.widgets.tag_cloud }}
{{ if isset .Site.Taxonomies "tags" }}
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
<div class="widget-wrap">
    <h3 class="widget-title">
        {{with .Site.Data.l10n.widgets.tag_cloud.title}}{{.}}{{end}}
    </h3>
    <div class="widget tagcloud">
        {{ range $name, $items := .Site.Taxonomies.tags }}
        {{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}
        <a href="{{ $url | absURL }}" style="font-size: 12px;">{{ $name }}</a>
        {{ end }}
    </div>
</div>
{{ end }}
{{ end }}
{{ end }}