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

github.com/ojroques/hugo-researcher.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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
commitabc7c58b5cf80696cda381f67ebd2f1719b32577 (patch)
tree1f8d431d153dca89c052167a0c3b2fd0d4fc4841
parentdae5f676aa1e97f33f3d0c9bf4deb4957108caaa (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>