This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity.eu/themes/hugoplate/layouts/authors/single.html

49 lines
1.5 KiB
HTML
Raw Normal View History

2024-03-26 16:28:28 +01:00
{{ define "main" }}
2024-03-27 12:24:18 +01:00
<section class="section-sm pb-0">
<div class="container">
<div
class="row border-border dark:border-darkmode-border justify-center border-b pb-14"
>
<div class="lg:col-4 text-center">
{{ $image:= .Params.image }} {{ if $image }} {{ partial "image" (dict
"Src" $image "Alt" .Title "Class" "mx-auto" "Size" "200x200") }} {{ else
if .Params.Email }}
<img
class="mx-auto"
alt="{{ .Title }}"
height="200"
width="200"
src="https://www.gravatar.com/avatar/{{ md5 .Params.email }}?s=128&pg&d=identicon"
/>
{{ end }}
<h1 class="h3 mt-10">{{ .Title }}</h1>
<div class="content mt-6">{{ .Content }}</div>
<ul class="social-icons ml-4 mt-10 text-center">
{{ range .Params.social }}
<li>
<a
href="{{ .link | safeURL }}"
target="_blank"
rel="noopener nofollow"
>
<span class="sr-only">{{ .title }}</span>
<i class="{{ .icon }}"></i>
</a>
</li>
2024-03-26 16:28:28 +01:00
{{ end }}
2024-03-27 12:24:18 +01:00
</ul>
2024-03-26 16:28:28 +01:00
</div>
2024-03-27 12:24:18 +01:00
</div>
2024-03-26 16:28:28 +01:00
2024-03-27 12:24:18 +01:00
<div class="row pb-16 pt-14">
{{ $filterByAuthor := where site.RegularPages "Params.author" "==" .Title
}} {{ range $filterByAuthor }}
<div class="md:col-6 lg:col-4 mb-12">
{{ partial "components/blog-card" . }}
2024-03-26 16:28:28 +01:00
</div>
2024-03-27 12:24:18 +01:00
{{ end }}
2024-03-26 16:28:28 +01:00
</div>
2024-03-27 12:24:18 +01:00
</div>
</section>
2024-03-26 16:28:28 +01:00
{{ end }}