Skip to content

Commit

Permalink
Update social.liquid: ensure social[1] is used (#2891)
Browse files Browse the repository at this point in the history
Fixes #2890 

With the recent updates (v0.13.0) the email badge (social) does not
contain the email anymore.
Some link generations in social.liquid used the old schema
Also updated the handling for mastodon to be aligned to the other social
badges.
  • Loading branch information
dfuchss authored Dec 12, 2024
1 parent 5bc4703 commit 00249b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/social.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% when 'discord_id' %}
<a href="https://discord.com/users/{{ social[1] }}" title="Discord"><i class="fa-brands fa-discord"></i></a>
{% when 'email' %}
<a href="mailto:{{ site.email | encode_email }}" title="email"><i class="fa-solid fa-envelope"></i></a>
<a href="mailto:{{ social[1] | encode_email }}" title="email"><i class="fa-solid fa-envelope"></i></a>
{% when 'facebook_id' %}
<a href="https://facebook.com/{{ social[1] }}" title="Facebook"><i class="fa-brands fa-facebook"></i></a>
{% when 'flickr_id' %}
Expand Down Expand Up @@ -39,7 +39,7 @@
{% when 'linkedin_username' %}
<a href="https://www.linkedin.com/in/{{ social[1] }}" title="LinkedIn"><i class="fa-brands fa-linkedin"></i></a>
{% when 'mastodon_username' %}
<a rel="me" href="https://{{ site.mastodon_username }}" title="Mastodon"><i class="fa-brands fa-mastodon"></i></a>
<a rel="me" href="https://{{ social[1] }}" title="Mastodon"><i class="fa-brands fa-mastodon"></i></a>
{% when 'medium_username' %}
<a href="https://medium.com/@{{ social[1] }}" title="Medium"><i class="fa-brands fa-medium"></i></a>
{% when 'orcid_id' %}
Expand Down

0 comments on commit 00249b9

Please sign in to comment.