gcg-website/layouts/author/single.html
Denys Konovalov d2ab31fa7a
All checks were successful
website-main / prod-build (push) Successful in 14s
website-main / test-build (push) Successful in 9s
minor changes
2024-03-24 16:23:54 +01:00

40 lines
1.1 KiB
HTML

{{ define "main" }}
<main data-pagefind-body>
<section class="section">
<div class="container">
<div class="text-center">
{{ if .Params.image }}
<img class="rounded-circle img-fluid mb-4" src="{{.Params.Image | relURL }}" width="128px" height="128px">
{{ else if .Params.email}}
<img class="rounded-circle img-fluid mb-4" src="https://www.gravatar.com/avatar/{{ md5 .Params.email }}?s=128&pg&d=identicon">
{{ end }}
<h4 class="fw-bold">{{ .Title }}</h4>
<hr>
{{ .Content }}
<hr>
{{ with .Params.email }}
<a href="mailto:{{ . }}">{{ partial "icons/icon" (dict "vendor" "mdi" "name" "at") }}</a>
{{ end }}
</div>
</div>
</section>
<section class="section pt-0" data-pagefind-ignore>
<div class="container">
<div class="title text-center">
<h2 class="mb-4">Geschrieben von {{ .Title }}</h2>
</div>
<div class="row">
{{ range where .Site.RegularPages "Params.author" "intersect" (slice .File.BaseFileName) }}
<div class="col-lg-4 col-sm-6 d-flex align-items-stretch">
{{ partial "card-article" . }}
</div>
{{ end }}
</div>
</div>
</section>
</main>
{{ end }}