Skip to content

Commit

Permalink
Add support for rel attribute in social media links (#92)
Browse files Browse the repository at this point in the history
Particularly rel="me" is of interest when verifying links
in for instance a Mastodon profile.
  • Loading branch information
hlindqvist authored Apr 11, 2024
1 parent 9af4d3b commit 6c9509d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<span class="social_links">
{% for link in site.dash.social_links %}
{% if link.fa == true %}
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fa fa-{{ link.icon }}"></i></a>
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"{% if link.rel %} rel="{{ link.rel }}"{% endif %}><i class="fa fa-{{ link.icon }}"></i></a>
{% else %}
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fab fa-{{ link.icon }}"></i></a>
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"{% if link.rel %} rel="{{ link.rel }}"{% endif %}><i class="fab fa-{{ link.icon }}"></i></a>
{% endif %}
{% endfor %}
</span>
Expand Down

0 comments on commit 6c9509d

Please sign in to comment.