This commit is contained in:
Colmaris 2025-02-12 22:45:42 +01:00
parent 8f9a937297
commit 2012aa8834
287 changed files with 0 additions and 4711 deletions

View file

@ -1,34 +0,0 @@
<a
{{ if or (strings.HasPrefix .Destination `http`) (strings.HasPrefix .Destination `#`) (strings.HasPrefix .Destination `/`) }}
href = "{{ .Destination | safeURL }}"
{{ else if strings.HasPrefix .Destination `mailto` }}
href = "mailto:{{ .Text }}"
{{ end }}
{{ with .Title}}
title = "{{ . }}"
{{ end }}
{{ if strings.HasPrefix .Destination "http" }}
target = "_blank"
rel = "nofollow noopener noreferrer"
{{ else if strings.HasPrefix .Destination "mailto" }}
onClick = "javascript:window.open('mailto:{{ .Text }}', 'mail'); event.preventDefault()"
{{ end }}>
<span>
{{ .Text }}
</span>
</a>