2021-08-15 08:41:40 +00:00
|
|
|
<article
|
2022-08-18 04:59:46 +00:00
|
|
|
class="{{ if not .Site.Params.homepage.showRecent }}
|
2021-08-15 08:41:40 +00:00
|
|
|
h-full
|
2022-08-18 04:59:46 +00:00
|
|
|
{{ end }} flex flex-col items-center justify-center text-center"
|
2021-08-15 08:41:40 +00:00
|
|
|
>
|
2023-09-10 00:38:54 +00:00
|
|
|
<header class="mb-3 flex flex-col items-center">
|
2023-11-12 10:52:28 +00:00
|
|
|
{{ with .Site.Params.Author.image }}
|
2022-01-11 01:29:21 +00:00
|
|
|
{{ $authorImage := resources.Get . }}
|
|
|
|
{{ if $authorImage }}
|
2023-04-06 22:40:56 +00:00
|
|
|
{{ $authorImage := $authorImage.Fill "288x288 Center" }}
|
2022-01-11 01:29:21 +00:00
|
|
|
<img
|
2023-09-10 00:38:54 +00:00
|
|
|
class="mb-2 h-36 w-36 rounded-full"
|
2022-01-11 01:29:21 +00:00
|
|
|
width="144"
|
|
|
|
height="144"
|
2023-11-12 10:52:28 +00:00
|
|
|
alt="{{ $.Site.Params.Author.name | default "Author" }}"
|
2022-01-11 01:29:21 +00:00
|
|
|
src="{{ $authorImage.RelPermalink }}"
|
|
|
|
/>
|
|
|
|
{{ end }}
|
2021-08-15 08:41:40 +00:00
|
|
|
{{ end }}
|
|
|
|
<h1 class="text-4xl font-extrabold">
|
2023-11-12 10:52:28 +00:00
|
|
|
{{ .Site.Params.Author.name | default .Site.Title }}
|
2021-08-15 08:41:40 +00:00
|
|
|
</h1>
|
2023-11-12 10:52:28 +00:00
|
|
|
{{ with .Site.Params.Author.headline }}
|
2022-01-12 01:32:29 +00:00
|
|
|
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
|
2022-06-22 02:15:05 +00:00
|
|
|
{{ . | markdownify | emojify }}
|
2022-01-12 01:32:29 +00:00
|
|
|
</h2>
|
|
|
|
{{ end }}
|
2021-08-15 08:41:40 +00:00
|
|
|
<div class="mt-1 text-2xl">
|
|
|
|
{{ partialCached "author-links.html" . }}
|
|
|
|
</div>
|
|
|
|
</header>
|
2022-01-20 03:08:52 +00:00
|
|
|
<section class="prose dark:prose-invert">{{ .Content | emojify }}</section>
|
2021-08-15 08:41:40 +00:00
|
|
|
</article>
|
2021-08-25 06:25:45 +00:00
|
|
|
<section>
|
2021-08-18 04:35:54 +00:00
|
|
|
{{ partial "recent-articles.html" . }}
|
|
|
|
</section>
|