hugo-theme-stack/layouts/_default/_markup/render-link.html
2020-08-24 12:07:58 +02:00

3 lines
No EOL
216 B
HTML

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