diff options
author | Sungho Spark <spark.sungho@gmail.com> | 2019-09-24 02:30:21 +0300 |
---|---|---|
committer | Sungho Spark <spark.sungho@gmail.com> | 2019-09-24 02:30:21 +0300 |
commit | ef2ec5349ca42eccd2a5824bfd9792ca8a17fbe1 (patch) | |
tree | 79d05ad89650555b302042020ecc7d96f52af7b4 | |
parent | 284ec9d393814578391d284acf23b798a6b9fb61 (diff) |
Fixing missed context of footer partial, adding socialIcons from config
-rw-r--r-- | exampleSite/config.toml | 13 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 23 |
3 files changed, 16 insertions, 22 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 457a4b2..7205914 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -77,4 +77,15 @@ theme = "timer-hugo" title = "Latest Works" subtitle= "Aliquam lobortis. Maecenas vestibulum mollis diam. Pellentesque auctor neque nec urna. Nulla sit amet est. Aenean posuere tortor sed cursus feugiat, nunc augue blandit nunc, eu sollicitudin urna dolor sagittis lacus." -
\ No newline at end of file + [params.footer] + [[params.footer.socialIcon]] + icon = "ion-social-facebook" + url = "#" + + [[params.footer.socialIcon]] + icon = "ion-social-instagram" + url = "#" + + [[params.footer.socialIcon]] + icon = "ion-social-linkedin" + url = "#" diff --git a/layouts/index.html b/layouts/index.html index 7cca630..7318827 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,4 +10,4 @@ {{ partial "cta.html" . }} -{{ partial "footer.html" }}
\ No newline at end of file +{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4851bd0..aeefc33 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -15,26 +15,9 @@ <div class="col-md-4 col-12"> {{ "<!-- Social Media -->" | safeHTML }} <ul class="social text-center text-md-right text-lg-right"> - <li> - <a href="#" class="facebook"> - <i class="ion-social-facebook"></i> - </a> - </li> - <li> - <a href="#" class="twitter"> - <i class="ion-social-twitter"></i> - </a> - </li> - <li> - <a href="#" class="linkedin"> - <i class="ion-social-linkedin"></i> - </a> - </li> - <li> - <a href="#" class="googleplus"> - <i class="ion-social-googleplus"></i> - </a> - </li> + {{ range .Site.Params.footer.socialIcon }} + <li><a href="{{ .url }}"><i class="{{ .icon }}"></i></a></li> + {{ end }} </ul> </div> </div> |