add custom link render hook

This commit is contained in:
Aniket Teredesai 2023-02-18 17:05:46 +05:30
parent f6b2f6a468
commit 1f7ff80687

View File

@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title }}title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" | and (eq .Page.Params.hiddenPage true) }}target="_blank" rel="nofollow noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>