hackertours-theme/layouts/_default/_markup/render-link.html
Aziz cff71bf5f5
Create render-link.html
Markdown render hooks for links
2022-09-15 18:38:30 +07:00

1 line
213 B
HTML

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