Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/shenoybr/hugo-goa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghd Hamzeh <raghd@rhamzeh.com>2019-03-14 19:07:08 +0300
committerRaghd Hamzeh <raghd@rhamzeh.com>2019-03-15 05:50:45 +0300
commit13b2df8f1a1a99d617d9cc9b0c61c4fbb86a9523 (patch)
treeb3fcd18af069a71184e890bcdc811c827425d496
parenta67beb1e2acd1c6b0b28aa179917b0656e78f56e (diff)
Added Google Scholar support
-rw-r--r--README.md12
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/social.html4
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 = "<username>"
twitter = "<username>"
facebook = "<username>"
google = "<username>"
+googlescholar = "<account_id>"
stackoverflow = "<username>"
lastfm = "<username>"
goodreads = "<username>"
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 }}
<a href="https://plus.google.com/{{.}}/about" aria-label="Google Plus" target="_blank"><i class="fab fa-google-plus" aria-hidden="true"></i></a>
{{ end }}
+ {{ with .Site.Params.social.googlescholar}}
+ <a href="https://scholar.google.com/citations?user={{.}}" aria-label="Google Scholar" target="_blank"><i class="fas fa-graduation-cap" aria-hidden="true"></i></a>
+ {{ end }}
{{ with .Site.Params.social.goodreads }}
<a href="https://www.goodreads.com/user/show/{{.}}" aria-label="Goodreads" target="_blank"><i class="fab fa-goodreads" aria-hidden="true"></i></a>
{{ 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 }}