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 pecey committed Jan 27, 2023
1 parent 30e211a commit a55f8cf
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 @@ -68,6 +68,7 @@ gitlab_username: # your GitLab user name
twitter_username: # your Twitter handle
mastodon_username: # your mastodon instance+username in the format instance.tld/@username
linkedin_username: # your LinkedIn user name
telegram_username: # your Telegram user name
scholar_userid: # your Google Scholar ID
semanticscholar_id: # 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 a55f8cf

Please sign in to comment.