Files
Hextra-AI-Insight-Daily/layouts/_default/_markup/render-link.html
2025-09-09 22:06:12 +08:00

8 lines
327 B
HTML

<!-- layouts/_default/_markup/render-link.html -->
<a href="{{ .Destination | safeURL }}" title="{{ .Text | safeHTML }}"
{{ if and (strings.HasPrefix .Destination "http") (not (strings.HasPrefix .Destination site.BaseURL)) }}
target="_blank" rel="nofollow noopener noreferrer"
{{ end }}
>
{{ .Text | safeHTML }}</a>