diff options
author | Raghd Hamzeh <raghd@rhamzeh.com> | 2018-07-20 15:05:17 +0300 |
---|---|---|
committer | Raghd Hamzeh <raghd@rhamzeh.com> | 2018-07-21 22:49:39 +0300 |
commit | 6eefbdaff8d6dac0bee5db850d7d9c9921868376 (patch) | |
tree | cc93c3d5643ac8f4fee866b84affd07f8e173069 | |
parent | 09adbf1e4faa054af8077c3b038e479637cec8ad (diff) |
Social Links: Added a bunch of social links
The following extra services are now supported:
- Last.fm
- Goodreads
- Gitlab
- Bitbucket
- 500px (spelled as fivehundredpx in the config)
- Flickr
- Foursquare
- Hackernews
- Kickstarter
- Patreon
- Pintrest
- Steam
- Reddit
- Snapchat
- Youtube
- Keybase
- Twitch
- Soundcloud
- Tumblr
- Skype
- Telegram
- WhatsApp
-rw-r--r-- | README.md | 48 | ||||
-rw-r--r-- | exampleSite/config.toml | 26 | ||||
-rw-r--r-- | layouts/partials/social.html | 74 |
3 files changed, 130 insertions, 18 deletions
@@ -105,18 +105,42 @@ These settings are included in the site's meta section. These settings to display your social accounts. -- `github`: Your github username. -- `instagram`: Your instagram username. -- `xing`: Your xing username. -- `linkedin`: Your linkedin username. -- `twitter`: Your twitter username. -- `facebook`: Your facebook username. -- `google`: Your google username. -- `medium`: Your medium username. -- `devto`: Your dev.to username. -- `stackoverflow`: Your stackoverflow username. -- `angellist`: Your angellist username. -- `email`: Your email. +- `github`: Your [Github](https://github.com) username. +- `instagram`: Your [Instagram](https://www.instagram.com) username. +- `xing`: Your [Xing](https://www.xing.com) username. +- `linkedin`: Your [Linkedin](https://www.linkedin.com) username. +- `twitter`: Your [Twitter](https://twitter.com) username. +- `facebook`: Your [Facebook](https://www.facebook.com) username. +- `google`: Your [Google](https://www.google.com) username. +- `medium`: Your [Medium](https://medium.com) username. +- `devto`: Your [dev.to](https://dev.to) username. +- `stackoverflow`: Your [StackOverflow](https://stackoverflow.com) username. +- `angellist`: Your [AngelList](https://angel.co) username. +- `lastfm`: Your [Last.fm](https://www.last.fm) username. +- `goodreads`: Your [Goodreads](https://www.goodreads.com) username. +- `gitlab`: Your [Gitlab](https://gitlab.com) username. +- `bitbucket`: Your [BitBucket](https://bitbucket.org) username. +- `fivehundredpx`: Your [500px](https://500px.com) username. +- `flickr`: Your [Flickr](https://flickr.com) username. +- `foursquare`: Your [Foursquare](https://foursquare.com) username. +- `hackernews`: Your [Y Combinator Hackernews](https://news.ycombinator.com) username. +- `kickstarter`: Your [Kickstarter](https://kickstarter.com) username. +- `patreon`: Your [Patreon](https://patreon.com) username. +- `pintrest`: Your [Pintrest](https://pintrest.com) username. +- `steam`: Your [Steam](https://steamcommunity.com) username. +- `reddit`: Your [Reddit](https://www.reddit.com) username. +- `snapchat`: Your [Snapchat](https://snapchat.com) username. +- `keybase`: Your [Keybase](https://keybase.io) username. +- `twitch`: Your [Twitch](https://twitch.tv) username. +- `youtube`: Your [YouTube](https://youtube.com) username. +- `soundcloud`: Your [Soundcloud](https://soundcloud.com) username. +- `tumblr`: Your [Tumblr](https://tumblr.com) username. +- `skype`: Your [skype](https://skype.com) username. +- `telegram`: Your [Telegram](https://telegram.com) username. +- `whatsapp`: Your phone number.* Follow the steps [here](https://faq.whatsapp.com/en/26000030/). +- `email`: Your email.* + +* `WARNING`: It is recommended to keep your private data (phone number/ email) private. Especially if you don't use them for business. Adding it to your public will expose your data to the public. This is irreversabile. ### Extras `[params.extra]` diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 5944399..737d34c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,6 +1,6 @@ ## Basic Configuration -baseurl = "https://shenoybr.github.io/hugo-goa-demo/" +baseurl = "https://shenoybr.github.io/hugo-goa-demo/" builddrafts = false canonifyurls = false languageCode = "en-US" @@ -42,11 +42,33 @@ twitter = "<username>" facebook = "<username>" google = "<username>" stackoverflow = "<username>" +lastfm = "<username>" +goodreads = "<username>" +gitlab = "<username>" +bitbucket = "<username>" +fivehundredpx = "<username>" +flickr = "<username>" +foursquare = "<username>" +hackernews = "<username>" +kickstarter = "<username>" +patreon = "<username>" +pintrest = "<username>" +steam = "<username>" +reddit = "<username>" +snapchat = "<username>" +youtube = "<username>" +keybase = "<username>" +twitch = "<username>" +soundcloud = "<username>" +tumblr = "<username>" +skype = "<username>" +telegram = "<username>" +whatsapp = "<username>" email = "you@example.com" ## Extras [params.extra] -copyright = "© 2016. Erlich Bachman. [Some Rights Reserved](http://creativecommons.org/licenses/by/3.0/)." +copyright = "© 2016. Erlich Bachman. [Some Rights Reserved](http://creativecommons.org/licenses/by/3.0/)." poweredby = true highlightjs = true diff --git a/layouts/partials/social.html b/layouts/partials/social.html index 28df3af..eeb9bcf 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -5,6 +5,12 @@ {{ with .Site.Params.social.google }} <a href="https://plus.google.com/{{.}}/about" aria-label="Google Plus"><i class="fab fa-google-plus" aria-hidden="true"></i></a> {{ end }} + {{ with .Site.Params.social.goodreads }} + <a href="https://www.goodreads.com/user/show/{{.}}" aria-label="Goodreads"><i class="fab fa-goodreads" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.lastfm }} + <a href="https://www.last.fm/user/{{.}}/" aria-label="Last.fm"><i class="fab fa-lastfm" aria-hidden="true"></i></a> + {{ end }} {{ with .Site.Params.social.facebook }} <a href="https://facebook.com/{{.}}" aria-label="Facebook"><i class="fab fa-facebook" aria-hidden="true"></i></a> {{ end }} @@ -29,13 +35,73 @@ {{ with .Site.Params.social.angellist}} <a href="https://angel.co/{{.}}" aria-label="AngelList"><i class="fab fa-angellist" aria-hidden="true"></i></a> {{ end }} - {{ with .Site.Params.social.email }} - <a href="mailto:{{.}}" aria-label="Email"><i class="fas fa-envelope-o" aria-hidden="true"></i></a> - {{ end }} {{ with .Site.Params.social.xing }} <a href="https://www.xing.com/profile/{{.}}" aria-label="Xing"><i class="fab fa-xing" aria-hidden="true"></i></a> {{ end }} + {{ with .Site.Params.social.gitlab}} + <a href="https://gitlab.com/{{.}}" aria-label="Gitlab"><i class="fab fa-gitlab" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.bitbucket}} + <a href="https://bitbucket.org/{{.}}" aria-label="Bitbucket"><i class="fab fa-bitbucket" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.fivehundredpx}} + <a href="https://500px.com/{{.}}" aria-label="500px"><i class="fab fa-500px" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.flickr}} + <a href="https://flickr.com/photos/{{.}}" aria-label="Flickr"><i class="fab fa-flickr" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.foursquare}} + <a href="https://foursquare.com/{{.}}" aria-label="Foursquare"><i class="fab fa-foursquare" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.hackernews}} + <a href="https://news.ycombinator.com/user?id={{.}}" aria-label="Y Combinator Hackernews"><i class="fab fa-hacker-news" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.kickstarter}} + <a href="https://kickstarter.com/profile/{{.}}" aria-label="Kickstarter"><i class="fab fa-kickstarter" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.patreon}} + <a href="https://patreon.com/{{.}}" aria-label="Patreon"><i class="fab fa-patreon" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.pintrest}} + <a href="https://pintrest.com/{{.}}" aria-label="Pintrest"><i class="fab fa-pintrest" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.steam}} + <a href="https://steamcommunity.com/id/{{.}}" aria-label="Steam"><i class="fab fa-steam" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.reddit}} + <a href="https://www.reddit.com/user/{{.}}" aria-label="Reddit"><i class="fab fa-reddit" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.snapchat}} + <a href="https://snapchat.com/add/{{.}}" aria-label="Snapchat"><i class="fab fa-snapchat" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.youtube}} + <a href="https://youtube.com/user/{{.}}" aria-label="Youtube"><i class="fab fa-youtube" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.keybase}} + <a href="https://keybase.io/{{.}}" aria-label="Keybase"><i class="fab fa-keybase" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.twitch}} + <a href="https://www.twitch.tv/{{.}}" aria-label="Twitch"><i class="fab fa-twitch" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.soundcloud}} + <a href="https://soundcloud.com/{{.}}" aria-label="Soundcloud"><i class="fab fa-soundcloud" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.tumblr}} + <a href="https://{{.}}.tumblr.com" aria-label="Tumblr"><i class="fab fa-tumblr" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.skype}} + <a href="skype:{{.}}" aria-label="Skype"><i class="fab fa-skype" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.telegram}} + <a href="https://t.me/{{.}}" aria-label="Telegram"><i class="fab fa-telegram" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.whatsapp}} + <a href="https://wa.me/{{.}}" aria-label="Whatsapp"><i class="fab fa-whatsapp" aria-hidden="true"></i></a> + {{ end }} + {{ with .Site.Params.social.email }} + <a href="mailto:{{.}}" aria-label="Email"><i class="fas fa-envelope-o" aria-hidden="true"></i></a> + {{ end }} {{ if and ( .Site.Params.extra.rss ) ( .RSSLink ) }} <a href="{{ .RSSLink }}" aria-label="RSS"><i class="fas fa-rss" aria-hidden="true"></i></a> {{ end }} -</section> +</section>
\ No newline at end of file |