22 lines
812 B
HTML
22 lines
812 B
HTML
{{ with .Site.Params.Author.links }}
|
|
<div class="flex flex-wrap text-neutral-400 dark:text-neutral-500 space-x-2">
|
|
{{ range $links := . }}
|
|
{{ range $name, $url := $links }}
|
|
{{ $isEmail := eq $name "email" }}
|
|
<a
|
|
class="{{ cond $isEmail "email-link" "" }} hover:text-primary-700 dark:hover:text-primary-400"
|
|
href="{{ cond $isEmail "#" ($url | safeURL) }}"
|
|
{{ if eq $name "email" }}
|
|
data-email="{{ $url | base64Encode }}"
|
|
{{ end }}
|
|
target="_blank"
|
|
aria-label="{{ $name | title }}"
|
|
title="{{ $name | title }}"
|
|
rel="me noopener noreferrer"
|
|
><span class="inline-block align-text-bottom">{{ partial "icon.html" $name }}</span></a
|
|
>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|