gcg-website/layouts/author/single.html

40 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2022-03-18 13:35:57 +01:00
{{ define "main" }}
2023-09-23 22:40:36 +02:00
<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 }}
2024-03-24 16:23:54 +01:00
<a href="mailto:{{ . }}">{{ partial "icons/icon" (dict "vendor" "mdi" "name" "at") }}</a>
{{ end }}
2022-03-18 13:35:57 +01:00
</div>
</div>
2022-03-18 13:35:57 +01:00
</section>
2023-09-30 12:03:26 +02:00
<section class="section pt-0" data-pagefind-ignore>
<div class="container">
<div class="title text-center">
2023-06-21 17:58:49 +02:00
<h2 class="mb-4">Geschrieben von {{ .Title }}</h2>
2022-03-18 13:35:57 +01:00
</div>
<div class="row">
2023-06-21 10:41:03 +02:00
{{ range where .Site.RegularPages "Params.author" "intersect" (slice .File.BaseFileName) }}
<div class="col-lg-4 col-sm-6 d-flex align-items-stretch">
2023-07-29 13:16:25 +02:00
{{ partial "card-article" . }}
</div>
{{ end }}
</div>
</div>
2022-03-18 13:35:57 +01:00
</section>
2023-09-23 22:40:36 +02:00
</main>
2023-01-22 18:24:57 +00:00
{{ end }}