mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 15:05:38 -06:00
b2a05f09cd
Added safeURL to author links so that ftp and phone links work correctly. See Hugo documentation for more information: https://gohugo.io/functions/safeurl/
16 lines
556 B
HTML
16 lines
556 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 hover:text-primary-700 dark:hover:text-primary-400"
|
|
href="{{ $url | safeURL }}"
|
|
target="_blank"
|
|
aria-label="{{ $name | title }}"
|
|
rel="me noopener noreferrer"
|
|
><span class="inline-block align-text-bottom">{{ partial "icon.html" $name }}</span></a
|
|
>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|