congo/layouts/partials/author.html

31 lines
1018 B
HTML
Raw Normal View History

{{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }}
<div class="flex items-center pt-8">
{{ with .Site.Author.image }}
<img class="w-24 h-24 !mt-0 !mb-0 mr-4 rounded-full" src="{{ . }}" />
2021-08-11 05:28:33 +00:00
{{ end }}
<div>
{{ with .Site.Author.name }}
<div class="font-semibold leading-6 text-gray-800 dark:text-gray-300">
{{ . }}
</div>
{{ end }}
{{ with .Site.Author.links }}
<div class="flex flex-wrap text-lg text-gray-400 dark:text-gray-500">
{{ range $links := . }}
{{ range $name, $url := $links }}
<a
class="mr-2 hover:text-primary-700 dark:hover:text-primary-400"
href="{{ $url }}"
target="_blank"
alt="{{ $name | title }}"
rel="me"
>{{ partial "icon.html" $name }}</a
>
{{ end }}
2021-08-13 06:35:32 +00:00
{{ end }}
</div>
{{ end }}
</div>
2021-08-11 05:28:33 +00:00
</div>
{{ end }}