Skip to content

Commit

Permalink
feat: add wikipedia social (alshedivat#1097)
Browse files Browse the repository at this point in the history
I imagine more people have wikipedia accounts than wikidata entries
about them 😉
  • Loading branch information
ChildishGiant authored and smeznar committed Apr 27, 2023
1 parent a5c7029 commit 6fc01b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions _includes/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down
3 changes: 3 additions & 0 deletions _includes/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
{%- if site.wikidata_id -%}
<a href="https://www.wikidata.org/wiki/{{ site.wikidata_id }}" title="Wikidata"><i class="fas fa-barcode"></i></a>
{% endif %}
{%- if site.wikipedia_id -%}
<a href="https://wikipedia.org/wiki/User:{{ site.wikipedia_id }}" title="Wikipedia"><i class="fab fa-wikipedia-w"></i></a>
{% endif %}
{%- if site.strava_userid -%}
<a href="https://www.strava.com/athletes/{{ site.strava_userid }}" title="Strava"><i class="fab fa-strava"></i></a>
{% endif %}
Expand Down

0 comments on commit 6fc01b5

Please sign in to comment.