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

github.com/vimux/blank.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2019-10-13 23:24:55 +0300
committervimux <vimux@protonmail.com>2019-10-13 23:25:43 +0300
commitec3b9b84d464077f75236a9f4219078a2890cefb (patch)
tree9880e8dabc9ecaf6a68803dfdce480f2dc2fa2c5
parent6a847ca683dcbeb71be4d30b6f96bd7b0442132f (diff)
Fix tags: don't create empty block w/o tags
-rw-r--r--layouts/_default/single.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index af8398c..525129b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,13 +6,15 @@
<div>
{{ .Content }}
</div>
+ {{ with .Params.tags }}
<div>
<ul id="tags">
- {{ range .Params.tags }}
+ {{ range . }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
</div>
+ {{ end }}
<div>
{{ template "_internal/disqus.html" . }}
</div>