Browse Source

Don't output tags partial if there are no tags

master
Adrian Short 5 years ago
parent
commit
d7a893b2b9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      layouts/partials/tags.html

+ 2
- 0
layouts/partials/tags.html View File

@@ -1,5 +1,7 @@
{{ if .Params.tags }}
<ul class="tags">
{{ range sort .Params.tags }}
<li><a href="{{ relURL "/tags/" }}{{ . | urlize }}/">{{ . }}</a></li>
{{ end }}
</ul>
{{ end }}

Loading…
Cancel
Save