mirror of https://github.com/jpanther/congo.git
🔀 Merge pull request #446 from tomy0000000/dev
🛠 Links render hook should add `noreferrer noopener`pull/452/head
commit
c0404958c2
|
@ -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 -}}
|
{{- .Text | safeHTML -}}
|
||||||
</a>
|
</a>
|
Loading…
Reference in New Issue