From acea57d82e216df76504127b8f0e0ccfe4d4663f Mon Sep 17 00:00:00 2001 From: Piotr Prucia Date: Sat, 6 Aug 2016 11:48:25 +0200 Subject: [PATCH 1/3] Strava added to social links - no icon available for now --- _config.yml | 1 + _includes/social-links.html | 1 + 2 files changed, 2 insertions(+) diff --git a/_config.yml b/_config.yml index 1fd94f1ef..a584412e2 100644 --- a/_config.yml +++ b/_config.yml @@ -53,6 +53,7 @@ stackoverflow: 123456/username from a "http://stackoverflow.com/users/1234 #xmpp: username@server.com #hackernews: username behance: username +#strava: userid # no icon for now, check font awesome for updates # number form a my profile link https://www.strava.com/athletes/123456 # Gems gems: diff --git a/_includes/social-links.html b/_includes/social-links.html index 090ce9002..3b1974652 100644 --- a/_includes/social-links.html +++ b/_includes/social-links.html @@ -23,4 +23,5 @@ {% if site.keybase %}
  • {% endif %} {% if site.xmpp %}
  • {% endif %} {% if site.hackernews %}
  • {% endif %} + {% if site.strava %}
  • {% endif %} \ No newline at end of file From 8fe2cd3e72b8f0c4b8636c7d930900182af57585 Mon Sep 17 00:00:00 2001 From: Piotr Prucia Date: Sat, 6 Aug 2016 11:22:36 +0200 Subject: [PATCH 2/3] Added Goodreads social link with a book icon. Strava icon is a bicycle until font awesome will have it's logo included. --- _includes/social-links.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_includes/social-links.html b/_includes/social-links.html index 3b1974652..8365e224e 100644 --- a/_includes/social-links.html +++ b/_includes/social-links.html @@ -23,5 +23,6 @@ {% if site.keybase %}
  • {% endif %} {% if site.xmpp %}
  • {% endif %} {% if site.hackernews %}
  • {% endif %} - {% if site.strava %}
  • {% endif %} + {% if site.strava %}
  • {% endif %} + {% if site.goodreads %}
  • {% endif %} \ No newline at end of file From dbd585af0ccf7a5d5f9b9f8a674b07d79f1c0b56 Mon Sep 17 00:00:00 2001 From: Piotr Prucia Date: Mon, 10 Oct 2016 08:21:44 +0200 Subject: [PATCH 3/3] Ability to track social link clicks in Google Analytics --- _config.yml | 4 ++- _includes/scripts.html | 4 +-- _includes/social-links.html | 52 ++++++++++++++++++------------------- 3 files changed, 31 insertions(+), 29 deletions(-) diff --git a/_config.yml b/_config.yml index a584412e2..97e73ebed 100644 --- a/_config.yml +++ b/_config.yml @@ -26,7 +26,9 @@ sass: style: compressed # Google Analytics -#google-analytics: UA-XXXXX-Y +google-analytics: + tracking-id: UA-XXXXX-Y + track-social-links: false # Social Links #email: email diff --git a/_includes/scripts.html b/_includes/scripts.html index 6430a8456..8ca8b8c4b 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -1,13 +1,13 @@ -{% if site.google-analytics %} +{% if site.google-analytics.tracking-id %} diff --git a/_includes/social-links.html b/_includes/social-links.html index 8365e224e..ed833d50e 100644 --- a/_includes/social-links.html +++ b/_includes/social-links.html @@ -1,28 +1,28 @@
      - {% if site.email %}
    • {% endif %} - {% if site.behance %}
    • {% endif %} - {% if site.twitter %}
    • {% endif %} - {% if site.facebook %}
    • {% endif %} - {% if site.google.plus %}
    • {% endif %} - {% if site.linkedin %}
    • {% endif %} - {% if site.xing %}
    • {% endif %} - {% if site.instagram %}
    • {% endif %} - {% if site.tumblr %}
    • {% endif %} - {% if site.github %}
    • {% endif %} - {% if site.stackoverflow %}
    • {% endif %} - {% if site.lastfm %}
    • {% endif %} - {% if site.dribbble %}
    • {% endif %} - {% if site.pinterest %}
    • {% endif %} - {% if site.foursquare %}
    • {% endif %} - {% if site.steam %}
    • {% endif %} - {% if site.youtube %}
    • {% endif %} - {% if site.soundcloud %}
    • {% endif %} - {% if site.weibo %}
    • {% endif %} - {% if site.flickr %}
    • {% endif %} - {% if site.codepen %}
    • {% endif %} - {% if site.keybase %}
    • {% endif %} - {% if site.xmpp %}
    • {% endif %} - {% if site.hackernews %}
    • {% endif %} - {% if site.strava %}
    • {% endif %} - {% if site.goodreads %}
    • {% endif %} + {% if site.email %}
    • {% endif %} + {% if site.behance %}
    • {% endif %} + {% if site.twitter %}
    • {% endif %} + {% if site.facebook %}
    • {% endif %} + {% if site.google.plus %}
    • {% endif %} + {% if site.linkedin %}
    • {% endif %} + {% if site.xing %}
    • {% endif %} + {% if site.instagram %}
    • {% endif %} + {% if site.tumblr %}
    • {% endif %} + {% if site.github %}
    • {% endif %} + {% if site.stackoverflow %}
    • {% endif %} + {% if site.lastfm %}
    • {% endif %} + {% if site.dribbble %}
    • {% endif %} + {% if site.pinterest %}
    • {% endif %} + {% if site.foursquare %}
    • {% endif %} + {% if site.steam %}
    • {% endif %} + {% if site.youtube %}
    • {% endif %} + {% if site.soundcloud %}
    • {% endif %} + {% if site.weibo %}
    • {% endif %} + {% if site.flickr %}
    • {% endif %} + {% if site.codepen %}
    • {% endif %} + {% if site.keybase %}
    • {% endif %} + {% if site.xmpp %}
    • {% endif %} + {% if site.hackernews %}
    • {% endif %} + {% if site.strava %}
    • {% endif %} + {% if site.goodreads %}
    • {% endif %}
    \ No newline at end of file