jlelse
/
Indieroad
Archived
1
Fork 0

Open external links in new tab

This commit is contained in:
Jan-Lukas Else 2020-01-19 08:53:51 +01:00
parent 14f7330dc7
commit bf39a4157c
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 | markdownify }}</a>