automatically add ↗ indicator to external links

This commit is contained in:
John Bowdre 2024-06-28 22:19:33 -05:00
parent 13ba253e76
commit a2ae1a084a

View file

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