Created
May 30, 2015 22:17
-
-
Save nbumbarger/8a909f5d8e2d2526ade7 to your computer and use it in GitHub Desktop.
Custom social media icon in Jekyll.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Add to _includes/footer.html, and define linkedin_username variable in _config.yml.--> | |
{% if site.linkedin_username %} | |
<li> | |
<a href="https://www.linkedin.com/in/{{ site.linkedin_username }}"> | |
<span class="icon icon--twitter"> | |
<svg viewBox="0 0 61 61"> | |
<path fill="#828282" d="M49.265,4.667H7.145c-2.016,0-3.651,1.596-3.651,3.563v42.613c0,1.966,1.635,3.562,3.651,3.562h42.12 c2.019,0,3.654-1.597,3.654-3.562V8.23C52.919,6.262,51.283,4.667,49.265,4.667z M18.475,46.304h-7.465V23.845h7.465V46.304z M14.743,20.777h-0.05c-2.504,0-4.124-1.725-4.124-3.88c0-2.203,1.67-3.88,4.223-3.88c2.554,0,4.125,1.677,4.175,3.88 C18.967,19.052,17.345,20.777,14.743,20.777z M45.394,46.304h-7.465V34.286c0-3.018-1.08-5.078-3.781-5.078 c-2.062,0-3.29,1.389-3.831,2.731c-0.197,0.479-0.245,1.149-0.245,1.821v12.543h-7.465c0,0,0.098-20.354,0-22.459h7.465v3.179 c0.992-1.53,2.766-3.709,6.729-3.709c4.911,0,8.594,3.211,8.594,10.11V46.304z"/> | |
</svg> | |
</span> | |
<span class="username">{{ site.linkedin_username }}</span> | |
</a> | |
</li> | |
{% endif %} | |
</ul> | |
</div> |
Very cool! Thanks for sharing.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! This was helpful.