Skip to content

Commit

Permalink
Modify footer to have text
Browse files Browse the repository at this point in the history
  • Loading branch information
hanju-jo committed Oct 8, 2017
1 parent a61f9cb commit faedd16
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 38 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ footer-links:
twitter: jekyllrb
youtube: # channel/<your_long_string> or user/<user-name>

# 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
Expand Down
5 changes: 5 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% include svg-icons.html %}

{% if site.footer-text %}
<p>{{ site.footer-text }}</p>
{% endif %}
2 changes: 1 addition & 1 deletion _includes/svg-icons.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Refer to https://codepen.io/ruandre/pen/howFi -->
<ul class="soc">
<ul class="svg-icon">

{% if site.footer-links.behance %}
<li><a href="https://www.behance.net/{{ site.footer-links.behance }}" class="icon-3 behance" title="Behance"><svg viewBox="0 0 512 512"><path d="M254.8 171.8c6.4 8.9 9.6 19.6 9.6 32 0 12.8-3.2 23.1-9.7 30.9 -3.6 4.4-9 8.4-16 12 10.7 3.9 18.8 10.1 24.2 18.5 5.5 8.4 8.2 18.7 8.2 30.7 0 12.4-3.1 23.6-9.3 33.5 -4 6.6-8.9 12.1-14.9 16.5 -6.7 5.1-14.6 8.6-23.7 10.5 -9.1 1.9-19 2.8-29.6 2.8H99.1V149.5h101.4C226.1 149.8 244.2 157.3 254.8 171.8zM140.9 185.9v46.3h51c9.1 0 16.5-1.7 22.2-5.2 5.7-3.5 8.5-9.6 8.5-18.4 0-9.8-3.8-16.2-11.3-19.4 -6.5-2.2-14.7-3.3-24.8-3.3H140.9zM140.9 266.9v55.9h50.9c9.1 0 16.2-1.2 21.2-3.7 9.2-4.6 13.8-13.3 13.8-26.2 0-10.9-4.5-18.4-13.4-22.5 -5-2.3-12-3.5-21-3.6H140.9L140.9 266.9zM396.4 207.3c10.8 4.8 19.8 12.5 26.8 23 6.4 9.2 10.5 19.9 12.4 32.1 1.1 7.1 1.5 17.4 1.3 30.8H323.9c0.6 15.6 6 26.5 16.2 32.7 6.2 3.9 13.6 5.8 22.4 5.8 9.2 0 16.8-2.4 22.5-7.1 3.2-2.6 5.9-6.1 8.4-10.7h41.4c-1.1 9.2-6.1 18.5-15 28 -13.9 15.1-33.4 22.6-58.4 22.6 -20.6 0-38.9-6.4-54.6-19.1 -15.8-12.7-23.7-33.4-23.7-62.1 0-26.9 7.1-47.5 21.4-61.8 14.2-14.3 32.7-21.5 55.5-21.5C373.4 200 385.6 202.4 396.4 207.3zM335.7 242.3c-5.7 5.9-9.3 13.9-10.8 24h69.9c-0.7-10.8-4.3-18.9-10.8-24.5 -6.5-5.6-14.5-8.4-24.1-8.4C349.5 233.4 341.4 236.4 335.7 242.3zM402.8 161.5h-91.2V182.7h91.2V161.5z"/></svg><!--[if lt IE 9]><em>Behance</em><![endif]--></a></li>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="wrapper-footer">
<div class="container">
<footer class="footer">
{% include svg-icons.html %}
{% include footer.html %}
</footer>
</div>
</div>
Expand Down
35 changes: 0 additions & 35 deletions _sass/_svg-icons.scss

This file was deleted.

35 changes: 34 additions & 1 deletion style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit faedd16

Please sign in to comment.