Skip to content

Commit

Permalink
Add 'target=_blank' to social share links
Browse files Browse the repository at this point in the history
A 'TODO' comment was added for completion in the future. The social share links have been updated to open in a new tab in order to improve user experience. This prevents the current page from being closed when a social share link is clicked. #55
  • Loading branch information
colin-gourlay committed Jun 14, 2024
1 parent cf0ba77 commit 9c58678
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- TODO: CG to complete... -->
{{ $title := .Title }}
{{ $url := printf "%s" .Permalink | absLangURL }}

Expand All @@ -14,7 +15,7 @@
<div id="sharing" class="mt3 ananke-socials">
{{ range $service := $services }}
{{ $href := index $hrefs .name }}
<a href="{{ $href }}" class="ananke-social-link {{ .name }} no-underline" aria-label="share on {{ .label }}">
<a href="{{ $href }}" target="_blank" rel="noopener noreferrer" class="ananke-social-link {{ .name }} no-underline" aria-label="share on {{ .label }}">
{{ with .icon }}
<span class="icon"> {{ . }}</span>
{{ end }}
Expand Down

0 comments on commit 9c58678

Please sign in to comment.