Files
HugoBlox-kit/wowchemy/layouts/_default/_markup/render-link.html
T
George Cushen f5d9cab6be fix: space before links
Mainly noticeable in CKJ languages.

Fix #1872
2020-10-01 13:09:54 +01:00

2 lines
286 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>