Fix tags: don't create empty block w/o tags
This commit is contained in:
parent
6a847ca683
commit
ec3b9b84d4
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue