diff options
author | Olivier Roques <ojroques@users.noreply.github.com> | 2022-04-14 13:19:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 13:19:56 +0200 |
commit | 022a836edb84bc205baa79507f8db4082a69227e (patch) | |
tree | 1f8d431d153dca89c052167a0c3b2fd0d4fc4841 /layouts/partials/footer.html | |
parent | dffd8e7ce72a1c3a66fcbca146eeab72a4fea43a (diff) | |
parent | c5c8163bb5f88674dfae6e3267be3ced0e7a7881 (diff) |
Merge pull request #28 from ezamriy/simplify_social_icons
Don't render social icons container if they are not defined
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r-- | layouts/partials/footer.html | 2 |
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> |