2024-08-03 16:55:54 +08:00
|
|
|
{{ $url := .Destination }}
|
|
|
|
|
<a
|
|
|
|
|
{{ if or (in $url "www.usj.cc") (strings.HasPrefix $url "/") }}
|
|
|
|
|
href="{{ $url }}"
|
|
|
|
|
{{ else }}
|
2026-01-22 10:44:33 +08:00
|
|
|
href="/tiaozhuan.html?target={{ $url | base64Encode }}"
|
2024-08-03 16:55:54 +08:00
|
|
|
{{ end }}
|
|
|
|
|
{{ if strings.HasPrefix .Destination "http" }} target="_blank"{{ end }}
|
|
|
|
|
>
|
|
|
|
|
{{ .Text | safeHTML }}</a>
|