mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-06-17 22:12:54 -04:00
0a7b3f23de
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.
18 lines
582 B
HTML
18 lines
582 B
HTML
{{ with .Site.Author.links }}
|
|
<div class="flex flex-wrap text-neutral-400 dark:text-neutral-500">
|
|
{{ range $links := . }}
|
|
{{ range $name, $url := $links }}
|
|
<a
|
|
class="px-1 transition-transform hover:scale-125 hover:text-primary-700 dark:hover:text-primary-400"
|
|
style="will-change:transform;"
|
|
href="{{ $url | safeURL }}"
|
|
target="_blank"
|
|
aria-label="{{ $name | title }}"
|
|
rel="me noopener noreferrer"
|
|
>{{ partial "icon.html" $name }}</a
|
|
>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|