Skip to content

Commit

Permalink
Adds simple Social Network Link / Social Networks Data definition (#278)
Browse files Browse the repository at this point in the history
* adds social-network-links config keys

* adds social networks config data

* simply social network links in footer

* fix typo

* simplify social-network-links template in config file

* add note about _data/SocialNetworks.yml from config file

* update comments in socialnetworks.yml
  • Loading branch information
OCram85 authored and daattali committed Jan 5, 2018
1 parent f7040fe commit c2be2a9
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 250 deletions.
62 changes: 24 additions & 38 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,44 +56,30 @@ avatar: "/img/avatar-icon.png"
# Important: you must keep the "name" parameter, everything else you can remove
author:
name: Some Person
email: "youremail@domain.com"
facebook: yourname # eg. daattali
github: yourname # eg. daattali
twitter: yourname # eg. daattali
reddit: yourname # eg. daattali
google-plus: +yourname # eg. +DeanAttali or 109424658772469020925
linkedin: yourname # eg. daattali
xing: yourname # eg. daattali
stackoverflow: yourlink # eg. "3943160/daattali"
snapchat: yourname # eg. daattali
instagram: yourname # eg. daattali
youtube: yourlink # eg. user/daattali or channel/daattali
spotify: yourname # eg. daattali
telephone: yourphone # eg. +14159998888
steam: yourname # eg. daattali
twitch: yourname # eg. daattali
yelp: yourname # eg. daattali

# Select which links to show in the footer
footer-links-active:
rss: false
facebook: true
email: true
twitter: true
google-plus: false
github: true
reddit: false
linkedin: false
xing: false
stackoverflow: false
snapchat: false
instagram: false
youtube: false
spotify: false
telephone: false
steam: false
twitch: false
yelp: false

# Select your active Social Network Links.
# Uncomment the links you want to show in the footer and add your information to each link.
# You can reorder the items to define the link order.
# If you want to add a new link that isn't here, you'll need to also edit the file _data/SocialNetworks.yml
social-network-links:
rss: true
email: "someone@example.com"
facebook: daattali
github: daattali
twitter: daattali
# reddit: yourname
# google-plus: +DeanAttali
# linkedin: daattali
# xing: yourname
# stackoverflow: "3943160/daattali"
# snapchat: deanat78
# instagram: deanat78
# youtube: user/deanat78
# spotify: yourname
# telephone: +14159998888
# steam: deanat78
# twitch: yourname
# yelp: yourname

# Select which share links to show in posts
share-links-active:
Expand Down
97 changes: 97 additions & 0 deletions _data/SocialNetworks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# You can define your custom social network links here.
# Use the same key you added in _config.yml -> soicial-network-links.
# In addition to that you need to specify the following properties:
# name: Specify a user-friendly name that will be used as a link title
# baseURL: Define a base URL which will be combined with the value of
# site.social-network-links.<key>
# icon: Specify a valid fontawesome icon class

facebook:
name: "Facebook"
baseURL: "https://www.facebook.com/"
icon: "fa-facebook"

github:
name: "GitHub"
baseURL: "https://github.com/"
icon: "fa-github"

twitter:
name: "Twitter"
baseURL: "https://twitter.com/"
icon: "fa-twitter"

reddit:
name: "Reddit"
baseURL: "https://reddit.com/u/"
icon: fa-reddit

google-plus:
name: "Google+"
baseURL: "https://plus.google.com/"
icon: "fa-google-plus"

email:
name: "Email me"
baseURL: "mailto:"
icon: "fa-envelope"

linkedin:
name: "LinkedIn"
baseURL: "https://linkedin.com/in/"
icon: "fa-linkedin"

xing:
name: "Xing"
baseURL: "https://www.xing.com/profile/"
icon: "fa-xing"

stackoverflow:
name: "StackOverflow"
baseURL: "https://stackoverflow.com/users/"
icon: "fa-stack-overflow"

snapchat:
name: "Snapchat"
baseURL: "https://www.snapchat.com/add/"
icon: "fa-snapchat-ghost"

instagram:
name: "Instagram"
baseURL: "https://www.instagram.com/"
icon: "fa-instagram"

youtube:
name: "YouTube"
baseURL: "https://www.youtube.com/"
icon: "fa-youtube"

spotify:
name: "Spotify"
baseURL: "https://open.spotify.com/user/"
icon: "fa-spotify"

telephone:
name: "Phone"
baseURL: "tel:"
icon: "fa-phone"

rss:
name: "RSS"
baseURL: "{{ '/feed.xml' | prepend: site.baseurl }}"
icon: "fa-rss"

steam:
name: "Steam"
baseURL: "https://steamcommunity.com/id/"
icon: "fa-steam"

twitch:
name: "Twitch"
baseURL: "https://www.twitch.tv/"
icon: "fa-twitch"

yelp:
name: "Yelp"
baseURL: "https://{{ site.author.yelp }}.yelp.com"
icon: "fa-yelp"
Loading

0 comments on commit c2be2a9

Please sign in to comment.