lemniskett.moe/layouts/_default/_markup/render_link.html

8 lines
242 B
HTML
Raw Normal View History

2023-09-04 11:02:37 +00:00
<a href="{{ .Destination | safeURL }}"
{{ with .Title}} title="{{ . }}"{{ end }}
{{ if strings.HasPrefix .Destination "http" }}
target="_blank" rel="external nofollow noopener noreferrer"
{{ end }}>
{{ .Text | safeHTML }}
</a>