Updated the link shortcode.

This commit is contained in:
wermos 2024-06-02 12:17:47 +05:30
parent 976e6d1472
commit c54b7daff2
No known key found for this signature in database
GPG key ID: 8CBC132DB3E00784

View file

@ -1,2 +1 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}> <a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }}{{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>{{ .Text | safeHTML }}</a>
{{ .Text | safeHTML }}</a>