blowfish/layouts/_default/_markup/render-link.html
2024-06-03 22:45:22 +05:30

7 lines
No EOL
257 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>