2022-03-18 13:35:57 +01:00
|
|
|
{{ define "main" }}
|
|
|
|
|
2023-04-03 21:45:44 +02:00
|
|
|
<section class="section-sm 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>
|
2023-04-04 18:34:22 +02:00
|
|
|
<h4 class="fw-bold">{{ .Title }}</h4>
|
2023-04-03 21:45:44 +02:00
|
|
|
</figcaption>
|
|
|
|
</figure>
|
|
|
|
<hr>
|
|
|
|
{{ .Content }}
|
|
|
|
<hr>
|
|
|
|
<ul class="list-inline">
|
2023-04-19 22:44:06 +02:00
|
|
|
{{ with .Params.email }}
|
|
|
|
<li class="list-inline-item"><a href="mailto:{{ . }}"><i class="mdi mdi-at"></i></a></li>
|
2023-04-03 21:45:44 +02:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
2023-04-03 21:45:44 +02:00
|
|
|
</div>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
2023-04-03 21:45:44 +02:00
|
|
|
</div>
|
2022-03-18 13:35:57 +01:00
|
|
|
</section>
|
|
|
|
|
2023-04-03 21:45:44 +02:00
|
|
|
<section class="section-sm">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="title text-center">
|
|
|
|
<h2 class="section-title">{{ i18n "posted_by" }} {{ .Title }}</h2>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-03 21:45:44 +02:00
|
|
|
{{ range where .Site.RegularPages "Params.author" (.Title | title) }}
|
|
|
|
<div class="col-lg-4 col-sm-6 mb-4">
|
|
|
|
{{ .Render "card" }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-18 13:35:57 +01:00
|
|
|
</section>
|
2023-04-03 21:45:44 +02:00
|
|
|
|
2023-01-22 18:24:57 +00:00
|
|
|
{{ end }}
|