2024-04-28 17:33:09 +02:00
|
|
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
|
|
|
<article class="{{ if not .Site.Params.homepage.showRecent }}
|
|
|
|
h-full
|
|
|
|
{{ end }} flex flex-col items-center justify-center text-center">
|
|
|
|
<header class="relative px-1 py-1 flex flex-col items-center mb-3">
|
2024-08-28 22:54:34 +02:00
|
|
|
{{ with .Site.Params.Author.image }}
|
2024-04-28 17:33:09 +02:00
|
|
|
{{ $authorImage := "" }}
|
|
|
|
{{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }}
|
|
|
|
{{ $authorImage = resources.GetRemote . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $authorImage = resources.Get . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if $authorImage }}
|
|
|
|
{{ if not $disableImageOptimization }}
|
2024-08-28 22:54:34 +02:00
|
|
|
{{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }}
|
2024-04-28 17:33:09 +02:00
|
|
|
{{ end }}
|
2024-08-28 22:54:34 +02:00
|
|
|
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144" alt="{{ $.Site.Params.Author.name | default " Author" }}"
|
2024-04-28 17:33:09 +02:00
|
|
|
src="{{ $authorImage.RelPermalink }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<h1 class="text-4xl font-extrabold">
|
2024-08-28 22:54:34 +02:00
|
|
|
{{ .Site.Params.Author.name | default .Site.Title }}
|
2024-04-28 17:33:09 +02:00
|
|
|
</h1>
|
2024-08-28 22:54:34 +02:00
|
|
|
{{ with .Site.Params.Author.headline }}
|
2024-04-28 17:33:09 +02:00
|
|
|
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
2024-06-26 21:44:28 +02:00
|
|
|
{{ . | markdownify }}
|
2024-04-28 17:33:09 +02:00
|
|
|
</h2>
|
|
|
|
{{ end }}
|
|
|
|
<div class="mt-1 text-2xl">
|
|
|
|
{{ partialCached "author-links.html" . }}
|
|
|
|
</div>
|
|
|
|
</header>
|
2024-06-26 21:44:28 +02:00
|
|
|
<section class="prose dark:prose-invert">{{ .Content }}</section>
|
2024-04-28 17:33:09 +02:00
|
|
|
</article>
|
|
|
|
<section>
|
|
|
|
{{ partial "recent-articles/main.html" . }}
|
2024-06-26 21:44:28 +02:00
|
|
|
</section>
|