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

github.com/pjbakker/flexible-seo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul <paul@brainspark.nl>2020-04-01 18:16:47 +0300
committerPaul <paul@brainspark.nl>2020-04-01 18:16:47 +0300
commitb9265118ec7fc349752e8193b29bf37dd60a1b75 (patch)
tree720e994fedd782eb22fb010fc47428e002bb50ae
parent8171f570ea8d08f259947f33e540d179363fe7ab (diff)
Show tags at bottom of pages that have them
-rw-r--r--layouts/_default/single.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 2d0c1f2..e2011a4 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -14,6 +14,13 @@
{{ $sidemenu := .Site.GetPage .Params.sidemenu }}
<div class="offset-lg-2 col-md-8">
{{ .Content }}
+ {{ if .Params.tags -}}
+ <div class="blog-tags">
+ {{ range .Params.tags -}}
+ <a href="{{ $.Site.LanguagePrefix | absURL }}tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
+ {{ end }}
+ </div>
+ {{ end }}
</div>
<div class="col-lg-2 d-none d-lg-block">
{{ with $sidemenu }}
@@ -23,6 +30,13 @@
{{ else }}
<div class="col-md-8">
{{ .Content }}
+ {{ if .Params.tags -}}
+ <div class="blog-tags">
+ {{ range .Params.tags -}}
+ <a href="{{ $.Site.LanguagePrefix | absURL }}tags/{{ . | urlize }}/">{{ . }}</a>&nbsp;
+ {{ end }}
+ </div>
+ {{ end }}
</div>
{{ end }}
</div>