forked from IT-Syndikat/website
auto-add target=_blank to external links
This commit is contained in:
parent
33470bf9ff
commit
225c3dae87
1 changed files with 1 additions and 0 deletions
1
layouts/_default/_markup/render-link.html
Normal file
1
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"{{ end }}>{{ .Text | safeHTML }}</a>
|
Loading…
Add table
Reference in a new issue