From 6fc01b5c540f4b255999388dd897e6a278ff7f86 Mon Sep 17 00:00:00 2001 From: Allie <13716824+ChildishGiant@users.noreply.github.com> Date: Sat, 25 Feb 2023 18:16:04 +0000 Subject: [PATCH] feat: add wikipedia social (#1097) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I imagine more people have wikipedia accounts than wikidata entries about them 😉 --- _config.yml | 1 + _includes/metadata.html | 4 ++++ _includes/social.html | 3 +++ 3 files changed, 8 insertions(+) diff --git a/_config.yml b/_config.yml index 261c6918ddf7..fdac39f3afa4 100644 --- a/_config.yml +++ b/_config.yml @@ -86,6 +86,7 @@ blogger_url: # your blogger URL work_url: # work page URL keybase_username: # your keybase user name wikidata_id: # your wikidata id +wikipedia_id: # your wikipedia id (Case sensitive) dblp_url: # your DBLP profile url stackoverflow_id: # your stackoverflow id kaggle_id: # your kaggle id diff --git a/_includes/metadata.html b/_includes/metadata.html index a404ca97aa96..e08b7d01f6df 100644 --- a/_includes/metadata.html +++ b/_includes/metadata.html @@ -123,6 +123,10 @@ {%- capture link -%}https://www.wikidata.org/wiki/{{ site.wikidata_id }}{%- endcapture -%} {%- assign sameaslinks = sameaslinks | push: link -%} {%- endif -%} + {%- if site.wikipedia_id -%} + {%- capture link -%}https://wikipedia.org/wiki/User:{{ site.wikipedia_id }}{%- endcapture -%} + {%- assign sameaslinks = sameaslinks | push: link -%} + {%- endif -%} {%- if site.strava_userid -%} {%- capture link -%}https://www.strava.com/athletes/{{ site.strava_userid }}{%- endcapture -%} {%- assign sameaslinks = sameaslinks | push: link -%} diff --git a/_includes/social.html b/_includes/social.html index c6a37f77544f..66bf4fee1167 100644 --- a/_includes/social.html +++ b/_includes/social.html @@ -58,6 +58,9 @@ {%- if site.wikidata_id -%} {% endif %} + {%- if site.wikipedia_id -%} + + {% endif %} {%- if site.strava_userid -%} {% endif %}