Skip to content

Commit 3947dce

Browse files
feat: add wikipedia social (alshedivat#1097)
I imagine more people have wikipedia accounts than wikidata entries about them 😉
1 parent 28953d5 commit 3947dce

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ blogger_url: # your blogger URL
8686
work_url: # work page URL
8787
keybase_username: # your keybase user name
8888
wikidata_id: # your wikidata id
89+
wikipedia_id: # your wikipedia id (Case sensitive)
8990
dblp_url: # your DBLP profile url
9091
stackoverflow_id: # your stackoverflow id
9192
kaggle_id: # your kaggle id

_includes/metadata.html

+4
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@
123123
{%- capture link -%}https://www.wikidata.org/wiki/{{ site.wikidata_id }}{%- endcapture -%}
124124
{%- assign sameaslinks = sameaslinks | push: link -%}
125125
{%- endif -%}
126+
{%- if site.wikipedia_id -%}
127+
{%- capture link -%}https://wikipedia.org/wiki/User:{{ site.wikipedia_id }}{%- endcapture -%}
128+
{%- assign sameaslinks = sameaslinks | push: link -%}
129+
{%- endif -%}
126130
{%- if site.strava_userid -%}
127131
{%- capture link -%}https://www.strava.com/athletes/{{ site.strava_userid }}{%- endcapture -%}
128132
{%- assign sameaslinks = sameaslinks | push: link -%}

_includes/social.html

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
{%- if site.wikidata_id -%}
5353
<a href="https://www.wikidata.org/wiki/{{ site.wikidata_id }}" title="Wikidata"><i class="fas fa-barcode"></i></a>
5454
{% endif %}
55+
{%- if site.wikipedia_id -%}
56+
<a href="https://wikipedia.org/wiki/User:{{ site.wikipedia_id }}" title="Wikipedia"><i class="fab fa-wikipedia-w"></i></a>
57+
{% endif %}
5558
{%- if site.strava_userid -%}
5659
<a href="https://www.strava.com/athletes/{{ site.strava_userid }}" title="Strava"><i class="fab fa-strava"></i></a>
5760
{% endif %}

0 commit comments

Comments
 (0)