Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor _config.yml to add site specific configurations (url pattern, icon class, etc.) #21

Merged
merged 9 commits into from
Feb 6, 2019
144 changes: 130 additions & 14 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ background: 'background.jpg'
favicon: 'favicon.ico'

# Online profiles
dribbble: ''
facebook: ''
twitter: ''
linkedin: ''
instagram: ''
pinterest: ''
youtube: ''
github-user: ''
dribbble: 'mydribbble'
facebook: 'myfacebook'
twitter: 'mytwitter'
linkedin: 'mylinkedin'
instagram: 'myinsta'
pinterest: 'mypinterest'
youtube: 'myyoutube'
github-user: 'mygithub'
#gitlab-user: ''
#codepen: ''
#steam: ''
Expand All @@ -27,13 +27,129 @@ github-user: ''
#stack-overflow: ''
#reddit: ''
#medium: ''
#tumblr: ''
weibo: ''
vk: ''
blog_url: ''
email: ''
messenger: ''
tumblr: 'mytumblr'
weibo: 'myweibo'
vk: 'myvk'
blog_url: 'myblog.blog.com'
email: '[email protected]'
messenger: 'myfbchat'

social-links-order: [github-user, facebook, twitter, instagram, tumblr, pinterest, linkedin, youtube, vk, weibo, dribbble, messenger, blog_url, email]

# Advanced settings
plugins:
- jekyll-remote-theme

# Yaml manifest of supported social links
# Requirements:
# `name`
# - plain-text name of the site (e.g. twitter)
# - **mandatory**
# `url-pattern`
# - site URL pattern containing a placeholder string (e.g. twitter.com/__USERNAME__)
# - placeholder will be replaced by username or value specified in _config.yml (e.g. twitter.com/mytwitter)
# - **mandatory**
# `url-scheme`
# - the hardcoded URI/URN url-scheme (e.g. https://)
# - can be one of: ['https://', 'http://', 'mailto:']
# - defaults to '//'
# - **optional**
# `icon-class`
# - the font awesome icon class names
# - font-awesome free and supports `fas` (solid) and `fab` (brands) styles
# - defaults to `fab` style and uses value of `name` attribute (e.g. fab fa-2x fa-twitter)
# - **optional**
social-links:
- name: facebook
url-pattern: facebook.com/__USERNAME__
icon-class: fab fa-2x fa-facebook-f

- name: twitter
url-pattern: twitter.com/__USERNAME__

- name: linkedin
url-pattern: linkedin.com/in/__USERNAME__

- name: google-plus
url-pattern: plus.google.com/+__USERNAME__

- name: vk
url-pattern: vk.com/__USERNAME__

- name: weibo
url-pattern: weibo.com/__USERNAME__

- name: instagram
url-pattern: instagram.com/__USERNAME__

- name: flickr
url-pattern: flickr.com/__USERNAME__

- name: pinterest
url-pattern: pinterest.com/__USERNAME__

- name: github-user
url-pattern: github.com/__USERNAME__
icon-class: fab fa-2x fa-github

- name: gitlab-user
url-pattern: gitlab.com/__USERNAME__
icon-class: fab fa-2x fa-gitlab

- name: codepen
url-pattern: codepen.com/__USERNAME__

- name: stack-overflow
url-pattern: stackoverflow.com/users/__USERNAME__

- name: reddit
url-pattern: reddit.com/user/__USERNAME__

- name: steam
url-pattern: steamcommunity.com/id/__USERNAME__

- name: youtube
url-pattern: youtube.com/__USERNAME__

- name: vimeo
url-pattern: vimeo.com/__USERNAME__

- name: soundcloud
url-pattern: soundcloud.com/__USERNAME__

- name: lastfm
url-pattern: last.fm/user/__USERNAME__

- name: medium
url-pattern: medium.com/@__USERNAME__

- name: tumblr
url-pattern: __USERNAME__.tumblr.com

- name: dribbble
url-pattern: dribbble.com/__USERNAME__

- name: keybase
url-pattern: keybase.io/__USERNAME__

- name: messenger
url-pattern: m.me/__USERNAME__
icon-class: fab fa-2x fa-facebook-messenger

- name: telegram
url-pattern: telegram.me/__USERNAME__

- name: snapchat
url-pattern: snapchat.com/add/__USERNAME__

- name: quora
url-pattern: www.quora.com/profile/__USERNAME__

- name: blog_url
url-pattern: '__USERNAME__'
icon-class: fas fa-2x fa-tags

- name: email
url-scheme: 'mailto:'
url-pattern: '__USERNAME__'
icon-class: fas fa-2x fa-envelope