This repository has been archived on 2026-05-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blowfish/layouts/partials/author-links.html
T
2026-02-25 23:13:17 +08:00

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 }}