Skip to content

Commit 904c400

Browse files
author
Mark "Justin du Coeur" Waks
committed
Make things more consistent.
This variant just adds `rel="me"` everywhere. That allows us to treat Mastodon as just another social. Oddly, the social links seem to be defined in two separate places. Not sure what that duplication is about.
1 parent 6559bf6 commit 904c400

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

_data/nav-social.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
url: https://twitter.com/typelevel
77
icon: "fab fa-twitter"
88

9+
- title: Mastodon
10+
url: https://fosstodon.org/@typelevel
11+
icon: "fab fa-mastodon"
12+
913
- title: Discord
1014
url: https://discord.gg/XF3CXcMzqD
1115
icon: "fab fa-discord"

_data/nav.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ navSocial:
2323
url: https://twitter.com/typelevel
2424
icon: "fab fa-twitter"
2525

26+
- title: Mastodon
27+
url: https://fosstodon.org/@typelevel
28+
icon: "fab fa-mastodon"
29+
2630
- title: Discord
2731
url: https://discord.gg/XF3CXcMzqD
2832
icon: "fab fa-discord"

_includes/_footer.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ <h3>Scala</h3>
2626

2727
{% for item in site.data.nav.navSocial %}
2828
<li>
29-
<a href="{{ item.url | relative_url }}" target="_blank">
29+
<a rel="me" href="{{ item.url | relative_url }}" target="_blank">
3030
<i class="{{ item.icon }}"></i>
3131
</a>
3232
</li>
3333
{% endfor %}
34-
<li><a rel="me" href="https://fosstodon.org/@typelevel" target="_blank"><i class="fab fa-mastodon"></i></a></li>
3534
</ul>
3635
</div>
3736
</div>

0 commit comments

Comments
 (0)