Skip to content

Commit 6c9509d

Browse files
authoredApr 11, 2024
Add support for rel attribute in social media links (#92)
Particularly rel="me" is of interest when verifying links in for instance a Mastodon profile.
1 parent 9af4d3b commit 6c9509d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎_includes/header.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<span class="social_links">
55
{% for link in site.dash.social_links %}
66
{% if link.fa == true %}
7-
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fa fa-{{ link.icon }}"></i></a>
7+
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"{% if link.rel %} rel="{{ link.rel }}"{% endif %}><i class="fa fa-{{ link.icon }}"></i></a>
88
{% else %}
9-
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"><i class="fab fa-{{ link.icon }}"></i></a>
9+
<a class="color-{{ link.color }}-hover" href="{{ link.url }}"{% if link.rel %} rel="{{ link.rel }}"{% endif %}><i class="fab fa-{{ link.icon }}"></i></a>
1010
{% endif %}
1111
{% endfor %}
1212
</span>

0 commit comments

Comments
 (0)