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

github.com/mmrath/hugo-bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/widgets/tag_cloud.html')
-rw-r--r--layouts/partials/widgets/tag_cloud.html16
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..7ffd721
--- /dev/null
+++ b/layouts/partials/widgets/tag_cloud.html
@@ -0,0 +1,16 @@
+{{ if .Site.Params.widgets.tag_cloud }}
+{{ if isset .Site.Taxonomies "tags" }}
+{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
+<div class="card card-block">
+ <h4 class="card-title">TAG CLOUD</h4>
+ <p class="card-text">
+ {{ range $name, $items := .Site.Taxonomies.tags }}
+ <a href="{{ $.Site.BaseURL }}tags/{{ $name | urlize | lower }}" class="tag tag-primary">
+ {{ $name }}
+ </a>
+ {{ end }}
+ </p>
+</div>
+{{ end }}
+{{ end }}
+{{ end }}