From faedd16c85f13c06b607bd1c438cb1d231e81d27 Mon Sep 17 00:00:00 2001 From: Hanju Jo Date: Mon, 9 Oct 2017 01:25:54 +0900 Subject: [PATCH] Modify footer to have text --- _config.yml | 2 ++ _includes/footer.html | 5 +++++ _includes/svg-icons.html | 2 +- _layouts/default.html | 2 +- _sass/_svg-icons.scss | 35 ----------------------------------- style.scss | 35 ++++++++++++++++++++++++++++++++++- 6 files changed, 43 insertions(+), 38 deletions(-) create mode 100644 _includes/footer.html delete mode 100644 _sass/_svg-icons.scss diff --git a/_config.yml b/_config.yml index 68b859081fc..2dc83e28c3b 100644 --- a/_config.yml +++ b/_config.yml @@ -48,6 +48,8 @@ footer-links: twitter: jekyllrb youtube: # channel/ or user/ +# Text under the icons in footer +footer-text: © 2017 Kiko Now # Enter your Disqus shortname (not your username) to enable commenting on posts # You can find your shortname on the Settings page of your Disqus account diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 00000000000..2c63ee6fc4a --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,5 @@ +{% include svg-icons.html %} + +{% if site.footer-text %} +

{{ site.footer-text }}

+{% endif %} \ No newline at end of file diff --git a/_includes/svg-icons.html b/_includes/svg-icons.html index dd0839d1f24..7a115ec3486 100644 --- a/_includes/svg-icons.html +++ b/_includes/svg-icons.html @@ -1,5 +1,5 @@ -
    +
      {% if site.footer-links.behance %}
    • diff --git a/_layouts/default.html b/_layouts/default.html index ddc7f4662b3..72315729714 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -11,7 +11,7 @@ diff --git a/_sass/_svg-icons.scss b/_sass/_svg-icons.scss deleted file mode 100644 index 5b2c753e97e..00000000000 --- a/_sass/_svg-icons.scss +++ /dev/null @@ -1,35 +0,0 @@ -.svg-icon { - width: 40px; - height: 40px; - display: inline-block; -} - -.soc { - display: block; - font-size: 0; - list-style: none; - margin: 0; - text-align: center; - - li { - display: inline-block; - margin: 10px; - } - - svg { - height: 30px; - width: 30px; - } - - em { - font-size: 18px; - line-height: 1.5; - margin-top: -.75em; - position: absolute; - text-align: center; - top: 50%; - right: 0; - bottom: 0; - left: 0; - } -} diff --git a/style.scss b/style.scss index 558ba5f347b..4680edd8a03 100644 --- a/style.scss +++ b/style.scss @@ -555,9 +555,42 @@ nav { footer { padding: 20px 0; text-align: center; + + p { + font-size: $small-font-size; + } + + .svg-icon { + display: block; + font-size: 0; + list-style: none; + margin: 0; + text-align: center; + + li { + display: inline-block; + margin: 10px; + } + + svg { + height: 30px; + width: 30px; + } + + em { + font-size: 18px; + line-height: 1.5; + margin-top: -.75em; + position: absolute; + text-align: center; + top: 50%; + right: 0; + bottom: 0; + left: 0; + } + } } // Settled on moving the import of syntax highlighting to the bottom of the CSS // ... Otherwise it really bloats up the top of the CSS file and makes it difficult to find the start @import "highlights"; -@import "svg-icons";