Add default template to add _blank target to all links

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2020-01-08 09:57:31 +05:30
parent 6a398b8250
commit e09542962a
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62
1 changed files with 1 additions and 0 deletions

View File

@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text }}</a>