Skip to content

Commit

Permalink
Render links in new tab (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reshrahim authored Oct 25, 2023
1 parent fd026c6 commit eeb1dcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/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 eeb1dcc

Please sign in to comment.