🐛 Fix URL safety declaration for author links

https://gohugo.io/functions/safeurl/

> Without safeURL, only the URI schemes http:, https: and mailto: are considered safe by Go templates.

By adding `safeURL`, we allow different types of links like `tel:` to work properly in author bios.
pull/452/head
Connick Shields 2023-01-21 22:47:08 -08:00 committed by GitHub
parent c7c6a23eac
commit 0a7b3f23de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<a <a
class="px-1 transition-transform hover:scale-125 hover:text-primary-700 dark:hover:text-primary-400" class="px-1 transition-transform hover:scale-125 hover:text-primary-700 dark:hover:text-primary-400"
style="will-change:transform;" style="will-change:transform;"
href="{{ $url }}" href="{{ $url | safeURL }}"
target="_blank" target="_blank"
aria-label="{{ $name | title }}" aria-label="{{ $name | title }}"
rel="me noopener noreferrer" rel="me noopener noreferrer"