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

github.com/lucperkins/hugo-fresh.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Biller <n.d.biller@gmail.com>2019-10-08 17:15:45 +0300
committerNathan Biller <n.d.biller@gmail.com>2019-10-08 17:15:45 +0300
commit837e50d01096c8d04df36ebcea684d0597da1398 (patch)
treeb5fc2f4c08eaf82aaf5f250b45ce357b2bf8e326
parentc42cd9238485c134761be715c968b4a1c7cbcac0 (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.yaml2
-rw-r--r--layouts/partials/footer.html3
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 }}