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>
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue