Открытие внешних ссылок в новой вкладке
All checks were successful
/ site (push) Successful in 1s

This commit is contained in:
Артём 2024-10-09 21:08:32 +03:00
parent 663ddca7bc
commit 3730447e67
No known key found for this signature in database
GPG key ID: EEFBB39006B28920

View file

@ -0,0 +1,3 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "https") }} target="_blank"{{ end }} >{{ .Text | safeHTML }}</a>
<!-- https://digitaldrummerj.me/hugo-links-to-other-pages/ -->