mirror of
https://github.com/zoriya/blowfish.git
synced 2026-06-08 04:42:31 +00:00
make external links open by default on a new tab
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
|
||||
{{ .Text | safeHTML }}
|
||||
</a>
|
||||
Reference in New Issue
Block a user