mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-06-27 10:42:12 -04:00
🔀 Merge pull request #446 from tomy0000000/dev
🛠 Links render hook should add `noreferrer noopener`
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
|
||||
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer noopener"{{ end }}>
|
||||
{{- .Text | safeHTML -}}
|
||||
</a>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user