diff options
| author | vimux <vimux@protonmail.com> | 2019-10-13 16:24:55 -0400 |
|---|---|---|
| committer | vimux <vimux@protonmail.com> | 2019-10-13 16:25:43 -0400 |
| commit | ec3b9b84d464077f75236a9f4219078a2890cefb (patch) | |
| tree | 9880e8dabc9ecaf6a68803dfdce480f2dc2fa2c5 | |
| parent | 6a847ca683dcbeb71be4d30b6f96bd7b0442132f (diff) | |
Fix tags: don't create empty block w/o tags
| -rw-r--r-- | layouts/_default/single.html | 4 |
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> |