From cf1147b50219091ef51e4ecb36611502456f1ddf Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 24 Dec 2017 21:30:55 +0100 Subject: [PATCH] Moved GitHub and Twitter username to author data file Signed-off-by: Jim Martens --- _config.yml | 2 -- _data/author.yml | 2 ++ _includes/footer.html | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_config.yml b/_config.yml index b70c601..54d57ae 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/_data/author.yml b/_data/author.yml index 7311337..7baa53f 100644 --- a/_data/author.yml +++ b/_data/author.yml @@ -4,3 +4,5 @@ image_desc: age: 23 location: Hamburg, Germany cv_link: /cv +github_username: 2martens +twitter_username: 2martens diff --git a/_includes/footer.html b/_includes/footer.html index c69f07a..582218e 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -14,15 +14,15 @@
    - {% if site.github_username %} + {% if site.data.author.github_username %}
  • - {% include icon-github.html username=site.github_username %} + {% include icon-github.html username=site.data.author.github_username %}
  • {% endif %} - {% if site.twitter_username %} + {% if site.data.author.twitter_username %}
  • - {% include icon-twitter.html username=site.twitter_username %} + {% include icon-twitter.html username=site.data.author.twitter_username %}
  • {% endif %}