diff options
author | Stefan M <StefMa@users.noreply.github.com> | 2019-10-11 09:13:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-11 09:13:32 +0300 |
commit | 229aeb6b3c794049b34a3ce5197f006b2aefb2ad (patch) | |
tree | 0957c35ba8d0485df16d33400a852ef3bb87fb35 | |
parent | 1c17e87023fac60f07684a808208a35fc7bbd64e (diff) | |
parent | a46f4f7da4c42adf64b67d1510c579d093cf90ba (diff) |
Merge pull request #88 from nathanbiller/variablizeFooterFollowUsText-48
Added a variable to the config file for Follow Us text and then added…
-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 07c1832..8a1babe 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -117,6 +117,8 @@ params: footer: # Logo (from /images/logos/___) logo: fresh-white-alt.svg + # Social Media Title + socialmediatitle: 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..17e4a73 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" }} +{{- $socialMediaTitle := index $footer "socialmediatitle" }} <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>{{ $socialMediaTitle }}</h3> <nav class="level is-mobile"> <div class="level-left"> {{- range $socialMedia }} |