This commit is contained in:
小赵同学 committed 2024-08-03 16:55:54 +08:00
1 parent b71a50d048
commit 0a794a7a47
491 files changed
+2492 -29486

No files matched your search

@@ -0,0 +1,10 @@
{{ $url := .Destination }}
<a
{{ if or (in $url "www.usj.cc") (strings.HasPrefix $url "/") }}
href="{{ $url }}"
{{ else }}
href="/tiaozhuan?target={{ $url | base64Encode }}"
{{ end }}
{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}
>
{{ .Text | safeHTML }}</a>