blowfish/layouts/_default/_markup/render-link.html

7 lines
257 B
HTML
Raw Normal View History

2024-06-03 10:09:10 -05:00
<a href="{{ .Destination | safeURL }}"
{{- with .Title -}}
title="{{ . }}"
{{- end }}
{{- if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
2024-06-03 10:09:10 -05:00
{{- .Text | safeHTML -}}
</a>