www/themes/blowfish/layouts/_default/_markup/render-link.html
2025-07-18 21:45:32 +02:00

11 lines
282 B
HTML

<a
href="{{ .Destination | safeURL }}"
{{- with .Title -}}
title="{{ . }}"
{{- end }}
{{- if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }}
target="_blank"
{{ end }}>
{{- .Text | safeHTML -}}
</a>
{{- /* Trim EOF */ -}}