You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hugo-theme-mini/layouts/_default/_markup/render-link.html

13 lines
249 B
HTML

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