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

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/widgets/tags.html')
-rw-r--r--layouts/partials/widgets/tags.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/widgets/tags.html b/layouts/partials/widgets/tags.html
index 5f66d90..abe986a 100644
--- a/layouts/partials/widgets/tags.html
+++ b/layouts/partials/widgets/tags.html
@@ -2,18 +2,22 @@
{{ if isset .Site.Taxonomies "tags" }}
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
<div class="panel sidebar-menu">
+
<div class="panel-heading">
- <h3 class="panel-title">{{ i18n "tagsTitle" }}</h3>
+ <h3 class="panel-title">{{ i18n "tagsTitle" }}</h3>
</div>
<div class="panel-body">
<ul class="tag-cloud">
+ {{ $current := . }}
{{ range $name, $items := .Site.Taxonomies.tags }}
- <li><a href="{{ $.Site.BaseURL }}tags/{{ $name | urlize | lower }}"><i class="fas fa-tags"></i> {{ $name }}</a>
+ <li{{ if eq $current.RelPermalink ($name | urlize | lower | printf "/tags/%s/") }} class="active"{{ end }}>
+ <a href="{{ $.Site.BaseURL }}tags/{{ $name | urlize | lower }}"><i class="fas fa-tags"></i> {{ $name }}</a>
</li>
{{ end }}
</ul>
</div>
+
</div>
{{ end }}
{{ end }}