diff options
Diffstat (limited to 'layouts/partials/widgets/tag_cloud.html')
-rw-r--r-- | layouts/partials/widgets/tag_cloud.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/layouts/partials/widgets/tag_cloud.html b/layouts/partials/widgets/tag_cloud.html new file mode 100644 index 0000000..58b0de5 --- /dev/null +++ b/layouts/partials/widgets/tag_cloud.html @@ -0,0 +1,16 @@ +{{ if .Site.Params.widgets.tag_cloud }} +{{ if not (eq (len .Site.Taxonomies.tags) 0) }} +<div class="widget-wrap"> + <ul class="category-list"> + <h3 class="widget-title">Tags {{with .Site.Data.l10n.widgets.tag_cloud.title}}{{.}}{{end}} </h3> + <div class="widget tagcloud"> + + + {{ range $name, $items := .Site.Taxonomies.tags }} + <a href="{{ $.Site.BaseURL }}tags/{{ $name | urlize | lower }}" style="font-size: 12px;">{{ $name }}</a> + {{ end }} + </div> +</ul> +</div> +{{ end }} +{{ end }} |