Website: Open external links in new tab
This commit is contained in:
parent
41e362cfd3
commit
9c78e8a9cf
1 changed files with 1 additions and 0 deletions
1
website/site/layouts/_default/_markup/render-link.html
Normal file
1
website/site/layouts/_default/_markup/render-link.html
Normal file
|
@ -0,0 +1 @@
|
|||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ .Text }}</a>
|
Loading…
Reference in a new issue