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

7 lines
217 B
HTML

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