From eafbb1f8ea4b72d3e2ba2cfd27b12669fe8e8761 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 c9f4df19d6c1..e8a3d213e2b7 100644
--- a/_config.yml
+++ b/_config.yml
@@ -85,6 +85,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 e05eb4f95723..d18cff8dc97f 100644
--- a/_includes/social.html
+++ b/_includes/social.html
@@ -52,6 +52,9 @@
{%- if site.wikidata_id -%}
{% endif %}
+ {%- if site.wikipedia_id -%}
+
+ {% endif %}
{%- if site.strava_userid -%}
{% endif %}