gcg-website/layouts/author/single.html
Denys Konovalov 763a040751
All checks were successful
website-main / prod-build (push) Successful in 1m20s
website-main / test-build (push) Successful in 55s
website-main / auto-rebuild (push) Has been skipped
website-dev / dev-build (push) Successful in 58s
refactor: switch render templates to partials
2023-07-15 15:50:10 +02:00

50 lines
1.3 KiB
HTML

{{ define "main" }}
<section class="section bg-light">
<div class="container">
<div class="row">
<div class="col-lg-10 mx-auto">
<div class="text-center">
<figure>
{{ if .Params.image }}
<img class="rounded-circle img-fluid mb-4" src="{{.Params.Image | relURL }}" width="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 }}
<figcaption>
<h4 class="fw-bold">{{ .Title }}</h4>
</figcaption>
</figure>
<hr>
{{ .Content }}
<hr>
<ul class="list-inline">
{{ with .Params.email }}
<li class="list-inline-item"><a href="mailto:{{ . }}"><i class="mdi mdi-at"></i></a></li>
{{ end }}
</ul>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="title text-center">
<h2 class="mb-4">Geschrieben von {{ .Title }}</h2>
</div>
</div>
{{ range where .Site.RegularPages "Params.author" "intersect" (slice .File.BaseFileName) }}
<div class="col-lg-4 col-sm-6 mb-4 mb-lg-0 d-flex align-items-stretch">
{{ partial "card" . }}
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}