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> <div>
{{ .Content }} {{ .Content }}
</div> </div>
{{ with .Params.tags }}
<div> <div>
<ul id="tags"> <ul id="tags">
{{ range .Params.tags }} {{ range . }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li> <li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
{{ end }}
<div> <div>
{{ template "_internal/disqus.html" . }} {{ template "_internal/disqus.html" . }}
</div> </div>