aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Zamriy <eugene@zamriy.info>2022-04-14 13:42:32 +0300
committerEugene Zamriy <eugene@zamriy.info>2022-04-14 13:42:32 +0300
commitc5c8163bb5f88674dfae6e3267be3ced0e7a7881 (patch)
tree1f8d431d153dca89c052167a0c3b2fd0d4fc4841
parentdffd8e7ce72a1c3a66fcbca146eeab72a4fea43a (diff)
Don't render social icons container if they are not defined
-rw-r--r--layouts/partials/footer.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 1574aac..b027256 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,10 +1,12 @@
<div id="footer" class="mb-5">
<hr>
+ {{ if .Site.Params.socialIcons }}
<div class="container text-center">
{{ range $item := .Site.Params.socialIcons }}
<a href="{{ $item.url }}" class="{{ $item.icon }} fa-1x" title="{{ $item.title }}"></a>
{{ end }}
</div>
+ {{ end }}
{{ with .Site.Params.footer }}
<div class="container text-center">
<a href="{{ .url | absURL }}" title="{{ .text }}"><small>{{ .text }}</small></a>