Moved GitHub and Twitter username to author data file

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2017-12-24 21:30:55 +01:00
parent 2ecb85b181
commit cf1147b502
3 changed files with 6 additions and 6 deletions

View File

@ -13,8 +13,6 @@ description: > # this means to ignore newlines until "baseurl:"
related to me personally.
baseurl: "" # the subpath of your site, e.g. /blog
url: "http://jim.2martens.de" # the base hostname & protocol for your site
twitter_username: 2martens
github_username: 2martens
# Build settings
markdown: kramdown

View File

@ -4,3 +4,5 @@ image_desc:
age: 23
location: Hamburg, Germany
cv_link: /cv
github_username: 2martens
twitter_username: 2martens

View File

@ -14,15 +14,15 @@
</div>
<div class="col-8">
<ul class="list-unstyled">
{% if site.github_username %}
{% if site.data.author.github_username %}
<li>
{% include icon-github.html username=site.github_username %}
{% include icon-github.html username=site.data.author.github_username %}
</li>
{% endif %}
{% if site.twitter_username %}
{% if site.data.author.twitter_username %}
<li>
{% include icon-twitter.html username=site.twitter_username %}
{% include icon-twitter.html username=site.data.author.twitter_username %}
</li>
{% endif %}
</ul>