diff options
author | Barry Clark <barry@barryclark.co> | 2014-06-13 08:59:59 -0400 |
---|---|---|
committer | Barry Clark <barry@barryclark.co> | 2014-06-13 08:59:59 -0400 |
commit | fda8d43c932385f5b21d66342f5c1e8ef7def321 (patch) | |
tree | a5971057db905c118692e7520a77b752f7ca0747 | |
parent | 516a87071e795ef93c7ea22b01de310ddf8aeb82 (diff) | |
download | kompetenzbolzen.github.io-fda8d43c932385f5b21d66342f5c1e8ef7def321.tar.gz |
Moved SVG icon markup to an include
-rw-r--r-- | _includes/svg-icons.html | 10 | ||||
-rw-r--r-- | _layouts/default.html | 11 |
2 files changed, 11 insertions, 10 deletions
diff --git a/_includes/svg-icons.html b/_includes/svg-icons.html new file mode 100644 index 0000000..cb6735d --- /dev/null +++ b/_includes/svg-icons.html @@ -0,0 +1,10 @@ + {% if site.footer-links.dribbble %}<a href="http://dribbble.com/{{ site.footer-links.dribbble }}">{% include svg-icons/dribbble.html %}</a>{% endif %} + {% if site.footer-links.email %}<a href="mailto: {{ site.footer-links.email }}">{% include svg-icons/email.html %}</a>{% endif %} + {% if site.footer-links.facebook %}<a href="http://facebook.com/{{ site.footer-links.facebook }}">{% include svg-icons/facebook.html %}</a>{% endif %} + {% if site.footer-links.flickr %}<a href="http://flickr.com/{{ site.footer-links.flickr }}">{% include svg-icons/flickr.html %}</a>{% endif %} + {% if site.footer-links.github %}<a href="http://github.com/{{ site.footer-links.github }}">{% include svg-icons/github.html %}</a>{% endif %} + {% if site.footer-links.instagram %}<a href="http://instagram.com/{{ site.footer-links.instagram }}">{% include svg-icons/instagram.html %}</a>{% endif %} + {% if site.footer-links.linkedin %}<a href="http://linkedin.com/in/{{ site.footer-links.linkedin }}">{% include svg-icons/linkedin.html %}</a>{% endif %} + {% if site.footer-links.pinterest %}<a href="http://pinterest.com/{{ site.footer-links.pinterest }}">{% include svg-icons/pinterest.html %}</a>{% endif %} + {% if site.footer-links.rss %}<a href="{{ site.baseurl }}/feed.xml">{% include svg-icons/rss.html %}</a>{% endif %} + {% if site.footer-links.twitter %}<a href="http://twitter.com/{{ site.footer-links.twitter }}">{% include svg-icons/twitter.html %}</a>{% endif %}
\ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 8fde70d..eb64434 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -47,16 +47,7 @@ <div class="wrapper-footer"> <div class="container"> <footer class="footer"> - {% if site.footer-links.dribbble %}<a href="http://dribbble.com/{{ site.footer-links.dribbble }}">{% include svg-icons/dribbble.html %}</a>{% endif %} - {% if site.footer-links.email %}<a href="mailto: {{ site.footer-links.email }}">{% include svg-icons/email.html %}</a>{% endif %} - {% if site.footer-links.facebook %}<a href="http://facebook.com/{{ site.footer-links.facebook }}">{% include svg-icons/facebook.html %}</a>{% endif %} - {% if site.footer-links.flickr %}<a href="http://flickr.com/{{ site.footer-links.flickr }}">{% include svg-icons/flickr.html %}</a>{% endif %} - {% if site.footer-links.github %}<a href="http://github.com/{{ site.footer-links.github }}">{% include svg-icons/github.html %}</a>{% endif %} - {% if site.footer-links.instagram %}<a href="http://instagram.com/{{ site.footer-links.instagram }}">{% include svg-icons/instagram.html %}</a>{% endif %} - {% if site.footer-links.linkedin %}<a href="http://linkedin.com/in/{{ site.footer-links.linkedin }}">{% include svg-icons/linkedin.html %}</a>{% endif %} - {% if site.footer-links.pinterest %}<a href="http://pinterest.com/{{ site.footer-links.pinterest }}">{% include svg-icons/pinterest.html %}</a>{% endif %} - {% if site.footer-links.rss %}<a href="{{ site.baseurl }}/feed.xml">{% include svg-icons/rss.html %}</a>{% endif %} - {% if site.footer-links.twitter %}<a href="http://twitter.com/{{ site.footer-links.twitter }}">{% include svg-icons/twitter.html %}</a>{% endif %} + {% include svg-icons.html %} </footer> </div> </div> |