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

github.com/saey55/hugo-elate-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMR CHRISTOPHE PRIGENT <christophe.prigent@gmail.com>2018-01-24 12:48:07 +0300
committerGitHub <noreply@github.com>2018-01-24 12:48:07 +0300
commitbdef8c8ef2f7f0c56589b73b80e02a8da58aa3d9 (patch)
tree7c0ac4c15dc2401545bfa050bdf59665f5abf811
parent48c083848bea8fe1e211814bf6eac8895da9c219 (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-xlayouts/partials/footer.html7
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>