diff options
author | MR CHRISTOPHE PRIGENT <christophe.prigent@gmail.com> | 2018-01-24 12:48:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 12:48:07 +0300 |
commit | bdef8c8ef2f7f0c56589b73b80e02a8da58aa3d9 (patch) | |
tree | 7c0ac4c15dc2401545bfa050bdf59665f5abf811 | |
parent | 48c083848bea8fe1e211814bf6eac8895da9c219 (diff) |
Update footer.html
https://github.com/saey55/hugo-elate-theme/issues/21
with conf :
```
# Footer section
[params.footer]
links = [
["icon-twitter", "#twitter"],
["icon-facebook", "#facebook"],
["icon-youtube", "#youtube"]
]
```
-rwxr-xr-x | layouts/partials/footer.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c1e0676..92bc47f 100755 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,15 +4,14 @@ <div class="">
<div class="col-md-12 text-center">
<p>{{ with .Site.Params.footer.copyright }}{{ . | markdownify }}{{ end }}</p>
-
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<ul class="social social-circle">
- <li><a href="#"><i class="icon-twitter"></i></a></li>
- <li><a href="#"><i class="icon-facebook"></i></a></li>
- <li><a href="#"><i class="icon-youtube"></i></a></li>
+ {{ range .Site.Params.footer.links }}
+ <li><a href="{{ with index . 1}}{{ . }}{{ end }}"><i class="{{ with index . 0}}{{ . }}{{ end }}"></i></a></li>
+ {{ end }}
</ul>
</div>
</div>
|