2023-07-30 13:42:45 -05:00
|
|
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
2024-02-10 11:54:51 -06:00
|
|
|
<article class="{{ if not .Site.Params.homepage.showRecent }}
|
2022-09-10 14:05:37 -05:00
|
|
|
h-full
|
2024-02-10 11:54:51 -06:00
|
|
|
{{ end }} flex flex-col items-center justify-center text-center">
|
2024-03-10 11:46:05 -05:00
|
|
|
<header class="relative px-1 py-1 flex flex-col items-center mb-3">
|
2022-09-10 14:05:37 -05:00
|
|
|
{{ with .Site.Author.image }}
|
2024-02-10 11:54:51 -06:00
|
|
|
{{ $authorImage := "" }}
|
|
|
|
{{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }}
|
|
|
|
{{ $authorImage = resources.GetRemote . }}
|
2024-02-10 08:04:54 -06:00
|
|
|
{{ else }}
|
2024-02-10 11:54:51 -06:00
|
|
|
{{ $authorImage = resources.Get . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if $authorImage }}
|
2024-02-10 08:04:54 -06:00
|
|
|
{{ if not $disableImageOptimization }}
|
2024-08-07 18:54:47 -05:00
|
|
|
{{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Author.imagequality | default "96" )) }}
|
2023-07-30 13:42:45 -05:00
|
|
|
{{ end }}
|
2024-02-10 11:54:51 -06:00
|
|
|
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144" alt="{{ $.Site.Author.name | default " Author" }}"
|
|
|
|
src="{{ $authorImage.RelPermalink }}" />
|
2022-09-10 14:05:37 -05:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<h1 class="text-4xl font-extrabold">
|
|
|
|
{{ .Site.Author.name | default .Site.Title }}
|
|
|
|
</h1>
|
|
|
|
{{ with .Site.Author.headline }}
|
2024-02-10 11:54:51 -06:00
|
|
|
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
2024-05-31 05:37:29 -05:00
|
|
|
{{ . | markdownify }}
|
2024-02-10 11:54:51 -06:00
|
|
|
</h2>
|
2022-09-10 14:05:37 -05:00
|
|
|
{{ end }}
|
|
|
|
<div class="mt-1 text-2xl">
|
|
|
|
{{ partialCached "author-links.html" . }}
|
|
|
|
</div>
|
|
|
|
</header>
|
2024-05-31 05:37:29 -05:00
|
|
|
<section class="prose dark:prose-invert">{{ .Content }}</section>
|
2022-09-10 14:05:37 -05:00
|
|
|
</article>
|
|
|
|
<section>
|
2022-12-31 09:58:20 -06:00
|
|
|
{{ partial "recent-articles/main.html" . }}
|
2024-05-31 05:37:29 -05:00
|
|
|
</section>
|