From f1eb1602a367a0f28271616a0d64ce329e30c814 Mon Sep 17 00:00:00 2001 From: Andrea Gasparini Date: Sat, 19 Nov 2022 16:19:56 +0100 Subject: [PATCH] Adds Telegram to social integrations (#992) --- _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 3bbc437..5731377 100644 --- a/_config.yml +++ b/_config.yml @@ -72,6 +72,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.) diff --git a/_includes/metadata.html b/_includes/metadata.html index af3813a..a404ca9 100644 --- a/_includes/metadata.html +++ b/_includes/metadata.html @@ -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 -%} diff --git a/_includes/social.html b/_includes/social.html index 946120e..23c0d38 100644 --- a/_includes/social.html +++ b/_includes/social.html @@ -1,6 +1,9 @@ {%- if site.email -%} {% endif %} + {%- if site.telegram_username -%} + + {% endif %} {%- if site.whatsapp_number -%} {% endif %}