mirror of
https://github.com/rottenwheel/revuoxmrtheme.git
synced 2024-12-23 03:59:21 +00:00
26f0a266ec
Introduced a custom link renderer in the default layout to create links with enhanced URL safety and behavior. Links now open in a new tab if they start with "http", and include a title attribute if provided. This ensures better user experience and security.
1 line
No EOL
177 B
HTML
1 line
No EOL
177 B
HTML
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a> |