Skip to content

Commit 72ecfc8

Browse files
Copilotwilltsai
andauthored
Add target="_blank" to footer links to open in new tabs (#33)
* Initial plan * Add target="_blank" and rel="noopener noreferrer" to all footer links Co-authored-by: willtsai <28876888+willtsai@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: willtsai <28876888+willtsai@users.noreply.github.com>
1 parent bdaa930 commit 72ecfc8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

themes/bigspring-light/layouts/partials/footer.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="h3 mb-4">{{ site.Params.footer_menu_left }}</div>
88
<ul class="list-unstyled footer-list">
99
{{ range site.Menus.footer_left }}
10-
<li><a href="{{ .URL | relLangURL }}" title="{{ .Name }}">{{ .Name }}</a></li>
10+
<li><a href="{{ .URL | relLangURL }}" title="{{ .Name }}" target="_blank" rel="noopener noreferrer">{{ .Name }}</a></li>
1111
{{ end }}
1212
</ul>
1313
{{ end }}
@@ -17,7 +17,7 @@
1717
<div class="h3 mb-4">{{ site.Params.footer_menu_middle }}</div>
1818
<ul class="list-unstyled footer-list">
1919
{{ range site.Menus.footer_middle }}
20-
<li><a href="{{ .URL | relLangURL }}" title="{{ .Name }}">{{ .Name }}</a></li>
20+
<li><a href="{{ .URL | relLangURL }}" title="{{ .Name }}" target="_blank" rel="noopener noreferrer">{{ .Name }}</a></li>
2121
{{ end }}
2222
</ul>
2323
{{ end }}
@@ -27,7 +27,7 @@
2727
<div class="h3 mb-4">{{ site.Params.footer_menu_right }}</div>
2828
<ul class="list-unstyled footer-list">
2929
{{ range site.Menus.footer_right }}
30-
<li><a href="{{ .URL | relLangURL }}" title="{{ .Name }}">{{ .Name }}</a></li>
30+
<li><a href="{{ .URL | relLangURL }}" title="{{ .Name }}" target="_blank" rel="noopener noreferrer">{{ .Name }}</a></li>
3131
{{ end }}
3232
</ul>
3333
{{ end }}
@@ -42,7 +42,7 @@
4242
{{ with site.Params.social }}
4343
<ul class="list-inline social-icons">
4444
{{ range . }}
45-
<li class="list-inline-item"><a href="{{ .link | safeURL }}" title="{{ .title }}"><i class="{{ .icon }}"></i></a></li>
45+
<li class="list-inline-item"><a href="{{ .link | safeURL }}" title="{{ .title }}" target="_blank" rel="noopener noreferrer"><i class="{{ .icon }}"></i></a></li>
4646
{{ end }}
4747
</ul>
4848
{{ end }}
@@ -51,7 +51,7 @@
5151
{{ end }}
5252
<div class="border-top border-default text-center py-4 mt-4">
5353
<p>Copyright &copy; 2025, The Radius Authors</p>
54-
<p>The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, see <a href="https://www.linuxfoundation.org/legal/trademark-usage" class="footer-link-text">Trademark Usage page.</a></p>
54+
<p>The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, see <a href="https://www.linuxfoundation.org/legal/trademark-usage" class="footer-link-text" target="_blank" rel="noopener noreferrer">Trademark Usage page.</a></p>
5555
</div>
5656
</div>
5757
</footer>

0 commit comments

Comments
 (0)