samsapti.dev/layouts/_default/_markup/render-link.html

1 line
196 B
HTML
Raw Normal View History

2022-05-23 16:04:31 +00:00
<a rel="noopener noreferrer" href="{{ .Destination | safeURL }}" {{ with .Title }} title="{{ . }}" {{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" {{ end }}>{{ .Text }}</a>