Files
HugoBlox-kit/layouts/_default/_markup/render-link.html
T
George Cushen 9ef1663760 fix: db716b2349
Fix Editorconfig auto-added EOF new line to render-link hook, causing whitespace to begin appearing after links - particularly noticeable when there is punctuation after a link.
2020-02-08 21:09:41 +00:00

2 lines
282 B
HTML

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