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

github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/widgets/categories.html')
-rw-r--r--layouts/partials/widgets/categories.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/widgets/categories.html b/layouts/partials/widgets/categories.html
new file mode 100644
index 0000000..886aaa3
--- /dev/null
+++ b/layouts/partials/widgets/categories.html
@@ -0,0 +1,12 @@
+{{ if isset .Site.Taxonomies "categories" }}
+{{ if not (eq (len .Site.Taxonomies.categories) 0) }}
+<div class="categorieslist">
+ <p class="asidetitle">{{ .Site.Params.Strings.Categories }}</p>
+ <ul>
+ {{ range $name, $items := .Site.Taxonomies.categories }}
+ <li><a href="{{ $.Site.BaseURL }}categories/{{ $name | urlize | lower }}" title="{{ $name }}">{{ $name }}<sup>{{ len $items }}</sup></a></li>
+ {{ end }}
+ </ul>
+</div>
+{{ end }}
+{{ end }}