Files
caldwell/layouts/_default/_markup/render-link.html
2025-09-08 17:30:45 +01:00

11 lines
245 B
HTML

<a
href="{{- .Destination | safeURL -}}"
{{ with .Title }}title="{{- . -}}"{{ end }}
{{ if strings.HasPrefix .Destination "http" }}
target="_blank" rel="noopener"
{{ end }}
>
{{- .Text -}}
</a>
{{- /* chomp trailing newline */ -}}