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:
authorsaey55 <saey55@users.noreply.github.com>2018-01-24 13:13:21 +0300
committerGitHub <noreply@github.com>2018-01-24 13:13:21 +0300
commitb0f29aa9ab759186050047c8aea882dc273f20ac (patch)
tree504fa84e501522e1d03a5356ba223f87cc3ffde0
parent48c083848bea8fe1e211814bf6eac8895da9c219 (diff)
parente296260e44ec2a5f4e0e4c1b6c7b00d9264222da (diff)
Merge pull request #27 from christopheprigent/master
Allow links in footer to be parameterized.
-rw-r--r--exampleSite/config.toml5
-rwxr-xr-xlayouts/partials/footer.html7
2 files changed, 8 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 8b14fbc..f8fc2c5 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -278,3 +278,8 @@ theme = "hugo-elate-theme"
[params.footer]
enable = true
copyright = '&copy; Elate Free HTML5. All Rights Reserved. <br>Created by <a href="http://freehtml5.co/" target="_blank">FREEHTML5.co</a> Images: <a href="http://pexels.com/" target="_blank">Pexels</a>, <a href="http://plmd.me/" target="_blank">plmd.me</a> <br>Hugo port by: <a href="https://github.com/saey55" target="_blank">saey55</a>'
+ links = [
+ ["icon-twitter", "#twitter"],
+ ["icon-facebook", "#facebook"],
+ ["icon-youtube", "#youtube"]
+ ]
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>