From ba844bf59a34a28d6dc557cb361327231c1d5bfb Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Mon, 9 Dec 2019 22:58:54 -0500 Subject: [PATCH] Style the site footer * Split the copyright and the "built with" text into separate configs * Style footer with smaller text * Add a thin border separating footer from rest of page --- exampleSite/config.toml | 3 ++- layouts/partials/footer.html | 3 +++ static/css/style.css | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c8c3919..28f907d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,7 +1,7 @@ baseURL = "http://example.org/" languageCode = "en-us" title = "Semantic IndieWeb Theme" -copyright = "Copyright © 2019, Copyright Owner Name | Built with [Hugo](https://gohugo.io/)" +copyright = "Copyright © 2019, Copyright Owner Name" theme = "semantic-indieweb" paginate = 5 @@ -10,6 +10,7 @@ paginate = 5 [params] subtitle = "A theme with no CSS and only basic layouts" + builtWith = "Built with [Hugo](https://gohugo.io/)" homepageSectionTitle = "What's New" mainSections = [ "posts" ] diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3e80538..d37d533 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,6 @@ {{ with .Site.Copyright }} +{{ end }} +{{ with .Site.Params.BuiltWith }} +

{{ . | markdownify }}

{{ end }} \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css index 17b035b..9b43731 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -30,3 +30,17 @@ nav.site-menu { border-top: thin solid; border-bottom: double; } + +/* Styles for site footer */ +p.copyright { + border-top: thin solid; + font-size: 0.8em; + text-align: center; + margin: 0; +} + +p.built-with { + text-align: center; + font-size: 0.8em; + margin: 0; +} \ No newline at end of file