2023-07-30 13:42:45 -05:00
|
|
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
2022-10-10 10:23:51 -05:00
|
|
|
<article class="max-w-full prose dark:prose-invert">
|
|
|
|
<div class="relative">
|
|
|
|
<div class="absolute inset-x-0 bottom-0 h-1/2 bg-gray-100"></div>
|
|
|
|
<div class="mx-auto max-w-7xl p-0">
|
|
|
|
<div class="relative shadow-xl sm:overflow-hidden rounded-2xl">
|
|
|
|
<div class="absolute inset-0">
|
2023-01-24 18:11:28 -06:00
|
|
|
{{ $homepageImage := "" }}
|
2024-02-10 11:54:51 -06:00
|
|
|
{{ with .Site.Params.defaultBackgroundImage }}
|
|
|
|
{{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }}
|
|
|
|
{{ $homepageImage = resources.GetRemote . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $homepageImage = resources.Get . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Site.Params.homepage.homepageImage }}
|
|
|
|
{{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }}
|
|
|
|
{{ $homepageImage = resources.GetRemote . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $homepageImage = resources.Get . }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-10-20 06:15:37 -05:00
|
|
|
{{ if $homepageImage }}
|
|
|
|
<img class="h-full w-full object-cover m-0 nozoom" src="{{ $homepageImage.RelPermalink }}">
|
2022-10-11 17:40:31 -05:00
|
|
|
<div
|
2024-03-06 16:27:27 -06:00
|
|
|
class="absolute inset-0 bg-gradient-to-r from-primary-500 to-secondary-600 dark:from-primary-600 dark:to-secondary-800 mix-blend-multiply">
|
2022-10-10 10:23:51 -05:00
|
|
|
</div>
|
2022-10-20 06:15:37 -05:00
|
|
|
{{ end }}
|
2022-10-10 10:23:51 -05:00
|
|
|
</div>
|
2022-10-28 12:02:37 -05:00
|
|
|
<div class="relative px-4 py-16 sm:px-6 sm:py-24 lg:py-32 lg:px-8 flex flex-col items-center justify-center text-center">
|
2024-08-11 07:45:05 -05:00
|
|
|
{{ with .Site.Params.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-11 07:45:05 -05:00
|
|
|
{{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }}
|
2024-02-10 08:04:54 -06:00
|
|
|
{{ end }}
|
|
|
|
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144"
|
2024-08-11 07:45:05 -05:00
|
|
|
alt="{{ $.Site.Params.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
|
2024-02-10 08:04:54 -06:00
|
|
|
{{ end }}
|
2022-10-10 10:23:51 -05:00
|
|
|
{{ end }}
|
2022-10-11 17:40:31 -05:00
|
|
|
<h1 class="mb-2 text-4xl font-extrabold text-neutral-200">
|
2024-08-11 07:45:05 -05:00
|
|
|
{{ .Site.Params.Author.name | default .Site.Title }}
|
2022-10-10 10:23:51 -05:00
|
|
|
</h1>
|
2024-08-11 07:45:05 -05:00
|
|
|
{{ with .Site.Params.Author.headline }}
|
2022-10-11 17:40:31 -05:00
|
|
|
<h2 class="mt-0 mb-0 text-xl text-neutral-300">
|
2024-05-31 05:37:29 -05:00
|
|
|
{{ . | markdownify }}
|
2022-10-10 10:23:51 -05:00
|
|
|
</h2>
|
|
|
|
{{ end }}
|
2023-08-29 08:59:42 -05:00
|
|
|
<div class="mt-3 mb-10 text-2xl">
|
2024-08-11 07:45:05 -05:00
|
|
|
{{ with .Site.Params.Author.links }}
|
2022-10-11 17:40:31 -05:00
|
|
|
<div class="flex flex-wrap">
|
|
|
|
{{ range $links := . }}
|
|
|
|
{{ range $name, $url := $links }}
|
2023-12-01 07:32:08 -06:00
|
|
|
<a class="px-1 hover:text-primary-400 text-primary-300" href="{{ $url }}" target="_blank"
|
2022-10-11 17:40:31 -05:00
|
|
|
aria-label="{{ $name | title }}" rel="me noopener noreferrer">{{ partial
|
|
|
|
"icon.html" $name }}</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-10-10 10:23:51 -05:00
|
|
|
</div>
|
2024-05-31 05:37:29 -05:00
|
|
|
<section class="prose prose-invert">{{ .Content }}</section>
|
2022-10-10 10:23:51 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<section>
|
2022-12-31 09:58:20 -06:00
|
|
|
{{ partial "recent-articles/main.html" . }}
|
2023-03-06 16:03:49 -06:00
|
|
|
</section>
|