diff options
author | Nathan Biller <n.d.biller@gmail.com> | 2019-10-08 17:15:45 +0300 |
---|---|---|
committer | Nathan Biller <n.d.biller@gmail.com> | 2019-10-08 17:15:45 +0300 |
commit | 837e50d01096c8d04df36ebcea684d0597da1398 (patch) | |
tree | b5fc2f4c08eaf82aaf5f250b45ce357b2bf8e326 | |
parent | c42cd9238485c134761be715c968b4a1c7cbcac0 (diff) |
Added a variable to the config file for Follow Us text and then added this variable in place of the hardcoded english version.
-rw-r--r-- | exampleSite/config.yaml | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 4447d30..45f7d3f 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -113,6 +113,8 @@ params: footer: # Logo (from /images/logos/___) logo: fresh-white-alt.svg + # Social Media Title + socialmediatext: Follow Us # Social media links (GitHub, Twitter, etc.). All are optional. socialmedia: - link: https://github.com/lucperkins/github-fresh diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 71b9bd6..576bd23 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,6 +3,7 @@ {{- $quickLinks := index $footer "quicklinks" }} {{- $socialMedia := index $footer "socialmedia" }} {{- $bulmaLogo := index $footer "bulmalogo" }} +{{- $followUs := index $footer "socialmediatext" }} <footer class="footer footer-dark"> <div class="container"> <div class="columns"> @@ -32,7 +33,7 @@ <div class="column"> <div class="footer-column"> <div class="footer-header"> - <h3>Follow Us</h3> + <h3>{{ $followUs }}</h3> <nav class="level is-mobile"> <div class="level-left"> {{- range $socialMedia }} |