From 13b2df8f1a1a99d617d9cc9b0c61c4fbb86a9523 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Thu, 14 Mar 2019 12:07:08 -0400 Subject: Added Google Scholar support --- README.md | 12 +++++++++--- exampleSite/config.toml | 1 + layouts/partials/social.html | 4 ++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b9881a..35038c7 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ These settings to display your social accounts. - `twitter`: Your [Twitter](https://twitter.com) username. - `facebook`: Your [Facebook](https://www.facebook.com) username. - `google`: Your [Google](https://www.google.com) username. +- `googlescholar`: Your [Google Scholar](https://scholar.google.com) account ID. [How to get this ID](#google-scholar) - `medium`: Your [Medium](https://medium.com) username. - `devto`: Your [dev.to](https://dev.to) username. - `stackoverflow`: Your [StackOverflow](https://stackoverflow.com) username. @@ -138,10 +139,15 @@ These settings to display your social accounts. - `strava`: Your [Strava](https://strava.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.* +- `whatsapp`: Your phone number. Follow the steps [here](https://faq.whatsapp.com/en/26000030/). [Privacy Warning](#privacy-warning) +- `email`: Your email. [Privacy Warning](#privacy-warning) -* `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. +#### Privacy 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 irreversible. + +#### Account Details +##### Google Scholar +To get this ID, go to Google Scholar, press the "My Profile" tab at the top, then copy the text after the `user=` till the first subsequent `&` (e.g. the `ACCOUNT_ID` part in `https://scholar.google.com/citations?user=ACCOUNT_ID&hl=en`). ### Extras `[params.extra]` diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fb1f8a1..004a2bb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -41,6 +41,7 @@ linkedin = "" twitter = "" facebook = "" google = "" +googlescholar = "" stackoverflow = "" lastfm = "" goodreads = "" diff --git a/layouts/partials/social.html b/layouts/partials/social.html index b3568e3..2745b10 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -5,6 +5,9 @@ {{ with .Site.Params.social.google }} {{ end }} + {{ with .Site.Params.social.googlescholar}} + + {{ end }} {{ with .Site.Params.social.goodreads }} {{ end }} @@ -118,6 +121,7 @@ "sameAs": [ {{ with .Site.Params.social.twitter }}"https://twitter.com/{{.}}",{{ end }} {{ with .Site.Params.social.google }}"https://plus.google.com/{{.}}/about",{{ end }} + {{ with .Site.Params.social.googlescholar}}"https://scholar.google.com/citations?user={{.}}"{{ end }} {{ with .Site.Params.social.goodreads }}"https://www.goodreads.com/user/show/{{.}}",{{ end }} {{ with .Site.Params.social.lastfm }}"https://www.last.fm/user/{{.}}/",{{ end }} {{ with .Site.Params.social.facebook }}"https://facebook.com/{{.}}",{{ end }} -- cgit v1.2.3