cedaei.com/layouts/_default/_markup/render-link.html
Ceda EI bfb1829a86 Squashed 'themes/codex/' content from commit da2d16a
git-subtree-dir: themes/codex
git-subtree-split: da2d16a4f95fc37e71548dfc139d51e22ebb09bd
2020-12-11 02:43:08 +05:30

5 lines
288 B
HTML

<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}" {{ end }}
{{ if strings.HasPrefix .Destination "mailto" }} target="_blank" {{ end }}
{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer noopener" {{ end }}
>{{ .Text | safeHTML }}</a>