render-link.html 282 B

12
  1. {{/* A Hugo Markdown render hook to parse links, opening external links in new tabs. */}}
  2. <a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>