Skip to content

Commit a3262f0

Browse files
authored
docs: Add mastodon link (#16638)
* feat: add mastodon * add norefferer noopener attribute * fix layout bug
1 parent 4cd87cb commit a3262f0

4 files changed

Lines changed: 15 additions & 7 deletions

File tree

docs/src/_data/links.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"twitter": "https://twitter.com/geteslint",
44
"chat": "https://eslint.org/chat",
55
"group": "https://groups.google.com/group/eslint",
6-
6+
"mastodon": "https://fosstodon.org/@eslint",
7+
78
"blog": "/blog",
89
"docs": "/docs/latest/",
910
"playground": "/play",

docs/src/_data/sites/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ footer:
7676
chat: Discord
7777
mailing_list: Google Group
7878
github: GitHub
79+
mastodon: Mastodon
7980
theme_switcher:
8081
title: Theme Switcher
8182
light: Light

docs/src/_includes/components/social-icons.html

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h2 id="eslint-social-label" hidden>{{ site.footer.social_icons.title }}</h2>
33
<ul role="list">
44
<li>
5-
<a href="{{ links.twitter }}" target="_blank">
5+
<a href="{{ links.twitter }}" rel="noopener noreferrer" target="_blank">
66
<svg width="24" height="25" viewBox="0 0 24 25" class="c-icon" role="img"
77
aria-label="{{ site.footer.social_icons.twitter }}">
88
<path
@@ -12,7 +12,7 @@ <h2 id="eslint-social-label" hidden>{{ site.footer.social_icons.title }}</h2>
1212
</a>
1313
</li>
1414
<li>
15-
<a href="{{ links.group }}" target="_blank">
15+
<a href="{{ links.group }}" rel="noopener noreferrer" target="_blank">
1616
<svg width="24" height="25" viewBox="0 0 24 25" class="c-icon" role="img"
1717
aria-label="{{ site.footer.social_icons.mailing_list }}">
1818
<path
@@ -22,7 +22,7 @@ <h2 id="eslint-social-label" hidden>{{ site.footer.social_icons.title }}</h2>
2222
</a>
2323
</li>
2424
<li>
25-
<a href="{{ links.github }}" target="_blank">
25+
<a href="{{ links.github }}" rel="noopener noreferrer" target="_blank">
2626
<svg width="25" height="24" viewBox="0 0 25 24" class="c-icon" role="img"
2727
aria-label="{{ site.footer.social_icons.github }}">
2828
<path fill-rule="evenodd" clip-rule="evenodd"
@@ -32,7 +32,7 @@ <h2 id="eslint-social-label" hidden>{{ site.footer.social_icons.title }}</h2>
3232
</a>
3333
</li>
3434
<li>
35-
<a href="{{ links.chat }}" target="_blank">
35+
<a href="{{ links.chat }}" rel="noopener noreferrer" target="_blank">
3636
<svg width="24" height="25" viewBox="0 0 24 25" class="c-icon" role="img"
3737
aria-label="{{ site.footer.social_icons.chat }}">
3838
<g clip-path="url(#clip0_256:2722)">
@@ -52,6 +52,13 @@ <h2 id="eslint-social-label" hidden>{{ site.footer.social_icons.title }}</h2>
5252

5353
</a>
5454
</li>
55-
55+
<li>
56+
<a href="{{ links.mastodon }}" rel="noopener noreferrer" target="_blank">
57+
<svg width="24" height="25" viewBox="0 0 216.4144 232.00976" class="c-icon" role="img" aria-label="{{ site.footer.social_icons.mastodon }}">
58+
<path fill="currentColor" d="M211.80734 139.0875c-3.18125 16.36625-28.4925 34.2775-57.5625 37.74875-15.15875 1.80875-30.08375 3.47125-45.99875 2.74125-26.0275-1.1925-46.565-6.2125-46.565-6.2125 0 2.53375.15625 4.94625.46875 7.2025 3.38375 25.68625 25.47 27.225 46.39125 27.9425 21.11625.7225 39.91875-5.20625 39.91875-5.20625l.8675 19.09s-14.77 7.93125-41.08125 9.39c-14.50875.7975-32.52375-.365-53.50625-5.91875C9.23234 213.82 1.40609 165.31125.20859 116.09125c-.365-14.61375-.14-28.39375-.14-39.91875 0-50.33 32.97625-65.0825 32.97625-65.0825C49.67234 3.45375 78.20359.2425 107.86484 0h.72875c29.66125.2425 58.21125 3.45375 74.8375 11.09 0 0 32.975 14.7525 32.975 65.0825 0 0 .41375 37.13375-4.59875 62.915" />
59+
<path fill="var(--lighter-background-color)" d="M177.50984 80.077v60.94125h-24.14375v-59.15c0-12.46875-5.24625-18.7975-15.74-18.7975-11.6025 0-17.4175 7.5075-17.4175 22.3525v32.37625H96.20734V85.42325c0-14.845-5.81625-22.3525-17.41875-22.3525-10.49375 0-15.74 6.32875-15.74 18.7975v59.15H38.90484V80.077c0-12.455 3.17125-22.3525 9.54125-29.675 6.56875-7.3225 15.17125-11.07625 25.85-11.07625 12.355 0 21.71125 4.74875 27.8975 14.2475l6.01375 10.08125 6.015-10.08125c6.185-9.49875 15.54125-14.2475 27.8975-14.2475 10.6775 0 19.28 3.75375 25.85 11.07625 6.36875 7.3225 9.54 17.22 9.54 29.675" />
60+
</svg>
61+
</a>
62+
</li>
5663
</ul>
5764
</nav>

docs/src/assets/scss/components/social-icons.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
padding: 0;
88
margin-left: -1rem;
99
margin-inline-start: -1rem;
10-
display: inline-flex;
1110

1211
li {
1312
margin: 0;

0 commit comments

Comments
 (0)