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
1 changed files with 3 additions and 1 deletions

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>