2023-07-30 13:42:45 -05:00
|
|
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
2022-10-16 11:25:13 -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 sm:overflow-hidden">
|
2022-11-05 16:48:45 -05:00
|
|
|
<div class="fixed inset-x-0 top-0" style="z-index:-10">
|
2022-11-13 17:28:38 -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 }}
|
|
|
|
{{ if $homepageImage }}
|
2023-03-11 04:00:18 -06:00
|
|
|
<img class="w-full h-[1000px] object-cover m-0 nozoom" src="{{ $homepageImage.RelPermalink }}" role="presentation">
|
2022-10-16 11:25:13 -05:00
|
|
|
<div
|
2022-11-05 16:58:40 -05:00
|
|
|
class="absolute inset-0 h-[1000px] bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal">
|
2022-10-16 11:25:13 -05:00
|
|
|
</div>
|
|
|
|
<div
|
2023-01-14 18:39:38 -06:00
|
|
|
class="opacity-60 absolute inset-0 h-[1000px] bg-gradient-to-t from-neutral dark:from-neutral-800 to-neutral-100 dark:to-neutral-800 mix-blend-normal">
|
2022-10-16 11:25:13 -05:00
|
|
|
</div>
|
2022-10-20 06:15:37 -05:00
|
|
|
{{ end }}
|
2022-10-16 11:25:13 -05:00
|
|
|
</div>
|
2023-04-29 10:42:52 -05:00
|
|
|
<div class="relative px-8 py-16 flex flex-col items-center justify-center text-center">
|
2022-10-16 11:25:13 -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 . }}
|
|
|
|
{{ else }}
|
|
|
|
{{ $authorImage = resources.Get . }}
|
|
|
|
{{ end }}
|
2024-02-10 08:04:54 -06:00
|
|
|
{{ if $authorImage }}
|
|
|
|
{{ if not $disableImageOptimization }}
|
|
|
|
{{ $authorImage = $authorImage.Fill "288x288" }}
|
|
|
|
{{ end }}
|
|
|
|
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144"
|
|
|
|
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
|
|
|
|
{{ end }}
|
2022-10-16 11:25:13 -05:00
|
|
|
{{ end }}
|
|
|
|
<h1 class="mb-2 text-4xl font-extrabold text-neutral-800 dark:text-neutral-200">
|
|
|
|
{{ .Site.Author.name | default .Site.Title }}
|
|
|
|
</h1>
|
|
|
|
{{ with .Site.Author.headline }}
|
|
|
|
<h2 class="mt-0 mb-0 text-xl text-neutral-800 dark:text-neutral-300">
|
|
|
|
{{ . | markdownify | emojify }}
|
|
|
|
</h2>
|
|
|
|
{{ end }}
|
2023-07-19 22:47:22 -05:00
|
|
|
<div class="mt-3 mb-10 text-2xl">
|
2022-10-16 11:25:13 -05:00
|
|
|
{{ with .Site.Author.links }}
|
|
|
|
<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-800 dark:text-primary-200" href="{{ $url }}" target="_blank"
|
2022-10-16 11:25:13 -05:00
|
|
|
aria-label="{{ $name | title }}" rel="me noopener noreferrer">{{ partial
|
|
|
|
"icon.html" $name }}</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<section class="prose dark:prose-invert">{{ .Content | emojify }}</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
<section>
|
2022-12-31 09:58:20 -06:00
|
|
|
{{ partial "recent-articles/main.html" . }}
|
2022-11-06 13:05:01 -06:00
|
|
|
</section>
|
2022-11-06 13:09:18 -06:00
|
|
|
{{ if .Site.Params.homepage.layoutBackgroundBlur | default false }}
|
2022-11-06 13:05:01 -06:00
|
|
|
<div id="background-blur" class="fixed opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl"></div>
|
|
|
|
<script>
|
|
|
|
window.addEventListener('scroll', function (e) {
|
|
|
|
var scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
|
|
var background_blur = document.getElementById('background-blur');
|
|
|
|
background_blur.style.opacity = (scroll / 300)
|
|
|
|
});
|
|
|
|
</script>
|
2022-11-13 17:28:38 -06:00
|
|
|
{{ end }}
|