Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mmrath/hugo-bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurali Mohan Rath <mmrath@gmail.com>2015-10-31 02:21:51 +0300
committerMurali Mohan Rath <mmrath@gmail.com>2015-10-31 02:21:51 +0300
commit9451b5d26091be9b50f917929adaa9902804a13d (patch)
tree6a392f1069877b302a0eb7541d0b2cb002850ec3 /layouts
parentce0a8293beceb2076206afaf840d0c287caeefc2 (diff)
Show tags only if it is available
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/modules/page/tags.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/partials/modules/page/tags.html b/layouts/partials/modules/page/tags.html
index 938e215..43a3ccf 100644
--- a/layouts/partials/modules/page/tags.html
+++ b/layouts/partials/modules/page/tags.html
@@ -1,4 +1,6 @@
-<i class="fa fa-tags"></i>
-{{ range .Params.tags }}
-<a href="{{ "/tags/" | absURL }}{{ . | urlize }}" class="label label-primary">{{ . }}</a>
+{{ if isset .Params "tags"}}
+ <i class="fa fa-tags"></i>
+ {{ range .Params.tags }}
+ <a href="{{ "/tags/" | absURL }}{{ . | urlize }}" class="label label-primary">{{ . }}</a>
+ {{ end }}
{{ end }}