Fix tel:, ftp:, etc URLs For Author Links

Added safeURL to author links so that ftp and phone links work correctly. See Hugo documentation for more information:
https://gohugo.io/functions/safeurl/
This commit is contained in:
Christian Hering 2023-09-28 03:11:36 -05:00 committed by GitHub
parent 6a83762f12
commit b2a05f09cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
{{ range $name, $url := $links }}
<a
class="px-1 hover:text-primary-700 dark:hover:text-primary-400"
href="{{ $url }}"
href="{{ $url | safeURL }}"
target="_blank"
aria-label="{{ $name | title }}"
rel="me noopener noreferrer"