Skip to content

Commit

Permalink
fix: open social links in a new tab (#353)
Browse files Browse the repository at this point in the history
This change ensures that the social links are opened in a new tab.

Co-authored-by: Alexander Bilz <mail@alexbilz.com>
  • Loading branch information
martinsre and lxndrblz committed Apr 30, 2022
1 parent ce933bc commit 81c4208
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ <h1 class="sidebar__introduction-title">
<ul class="sidebar__list">
{{ range $item := .Site.Params.socialIcons }}
<li class="sidebar__list-item">
<a href="{{ $item.url }}" rel="me" aria-label="{{ $item.title }}" title="{{ $item.title }}">
<a
href="{{ $item.url }}"
target="_blank"
rel="noopener"
aria-label="{{ $item.title }}"
title="{{ $item.title }}"
>
<i class="{{ $item.icon }} fa-2x" aria-hidden="true"></i>
</a>
</li>
Expand Down

0 comments on commit 81c4208

Please sign in to comment.