Skip to content

Commit

Permalink
Adds Telegram to social integrations (alshedivat#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-gasparini authored and GeorgeVern committed Feb 1, 2023
1 parent a6ab2cc commit 3b6d9fa
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 @@ -73,6 +73,7 @@ mastodon_username: # your mastodon username
mastodon_instance: # your mastodon instance
mastodon_username: # your mastodon instance+username in the format instance.tld/@username
linkedin_username: giorgos-vernikos-771200151 # your LinkedIn user name
telegram_username: # your Telegram user name
scholar_userid: 1AgA0_YAAAAJ&hl # your Google Scholar ID
semanticscholar_id: 1972392392 # your Semantic Scholar ID
whatsapp_number: # your WhatsApp number (full phone number in international format. Omit any zeroes, brackets, or dashes when adding the phone number in international format.)
Expand Down
4 changes: 4 additions & 0 deletions _includes/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
{%- capture link -%}https://github.com/{{ site.github_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.telegram_username -%}
{%- capture link -%}https://telegram.me/{{ site.telegram_username }}{%- endcapture -%}
{%- assign sameaslinks = sameaslinks | push: link -%}
{%- endif -%}
{%- if site.linkedin_username -%}
{%- capture link -%}https://www.linkedin.com/in/{{ site.linkedin_username }}{%- 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
@@ -1,6 +1,9 @@
{%- if site.email -%}
<a href="mailto:{{ site.email | encode_email }}" title="email"><i class="fas fa-envelope"></i></a>
{% endif %}
{%- if site.telegram_username -%}
<a href="https://telegram.me/{{ site.telegram_username }}" title="telegram"><i class="fab fa-telegram"></i></a>
{% endif %}
{%- if site.whatsapp_number -%}
<a href="https://wa.me/{{ site.whatsapp_number }}" title="whatsapp"><i class="fab fa-whatsapp"></i></a>
{% endif %}
Expand Down

0 comments on commit 3b6d9fa

Please sign in to comment.