Skip to content

Commit

Permalink
Open links in a new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
akashchandwani committed Sep 3, 2024
1 parent 3ea393c commit e6ad49a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>

0 comments on commit e6ad49a

Please sign in to comment.