diff options
author | MR CHRISTOPHE PRIGENT <christophe.prigent@gmail.com> | 2018-01-24 12:55:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 12:55:46 +0300 |
commit | e296260e44ec2a5f4e0e4c1b6c7b00d9264222da (patch) | |
tree | 504fa84e501522e1d03a5356ba223f87cc3ffde0 | |
parent | c2a7b11cd51a8c116e8c3858e54228725d407e9e (diff) | |
parent | bdef8c8ef2f7f0c56589b73b80e02a8da58aa3d9 (diff) |
Merge pull request #1 from christopheprigent/patch-1
Allow links in footer to be parameterized.
-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>
|