From 404ddf26e5e36951cbf9f212ce685896ec714a08 Mon Sep 17 00:00:00 2001 From: Ben Abbott Date: Wed, 12 Nov 2014 16:42:00 +1300 Subject: Change how SVG icons are included in pages Normally you include a .html file containing SVG data to show social media icons on the page, but this means adding up to 27KB of bloat to every single page. With this commit I have moved the SVG data into a .scss file and converted them into Data URIs so they work on multiple browsers. This means the CSS file will contain the SVG data rather than each and every page on the site. --- _includes/svg-icons.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to '_includes/svg-icons.html') diff --git a/_includes/svg-icons.html b/_includes/svg-icons.html index b96c32c..f9d33a0 100644 --- a/_includes/svg-icons.html +++ b/_includes/svg-icons.html @@ -1,11 +1,11 @@ - {% if site.footer-links.dribbble %}{% include svg-icons/dribbble.html %}{% endif %} - {% if site.footer-links.email %}{% include svg-icons/email.html %}{% endif %} - {% if site.footer-links.facebook %}{% include svg-icons/facebook.html %}{% endif %} - {% if site.footer-links.flickr %}{% include svg-icons/flickr.html %}{% endif %} - {% if site.footer-links.github %}{% include svg-icons/github.html %}{% endif %} - {% if site.footer-links.instagram %}{% include svg-icons/instagram.html %}{% endif %} - {% if site.footer-links.linkedin %}{% include svg-icons/linkedin.html %}{% endif %} - {% if site.footer-links.pinterest %}{% include svg-icons/pinterest.html %}{% endif %} - {% if site.footer-links.rss %}{% include svg-icons/rss.html %}{% endif %} - {% if site.footer-links.twitter %}{% include svg-icons/twitter.html %}{% endif %} - {% if site.footer-links.stackoverflow %}{% include svg-icons/stackoverflow.html %}{% endif %} +{% if site.footer-links.dribbble %}{% endif %} +{% if site.footer-links.email %}{% endif %} +{% if site.footer-links.facebook %}{% endif %} +{% if site.footer-links.flickr %}{% endif %} +{% if site.footer-links.github %}{% endif %} +{% if site.footer-links.instagram %}{% endif %} +{% if site.footer-links.linkedin %}{% endif %} +{% if site.footer-links.pinterest %}{% endif %} +{% if site.footer-links.rss %}{% endif %} +{% if site.footer-links.twitter %}{% endif %} +{% if site.footer-links.stackoverflow %}{% endif %} -- cgit v1.2.3