Fix tags: don't create empty block w/o tags

This commit is contained in:
vimux 2019-10-13 16:24:55 -04:00
parent 6a847ca683
commit ec3b9b84d4
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -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>