All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m16s
45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
{{ define "main" }}
|
|
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
|
|
<article class="flex flex-col items-center justify-center text-center">
|
|
<header class="flex flex-col items-center mb-3">
|
|
{{ with .Site.Params.Author.image }}
|
|
{{ $authorImage := resources.Get . }}
|
|
{{ 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.Params.Author.name | default "Author" }}"
|
|
src="{{ $authorImage.RelPermalink }}"
|
|
/>
|
|
{{ end }}
|
|
{{ end }}
|
|
<h1 class="text-4xl font-extrabold">
|
|
{{ .Site.Params.Author.name | default .Site.Title }}
|
|
</h1>
|
|
<div class="mt-1 text-2xl">
|
|
{{ partialCached "author-links.html" . }}
|
|
</div>
|
|
</header>
|
|
</article>
|
|
<article class="max-w-full">
|
|
<header>
|
|
{{ if .Params.showBreadcrumbs | default (.Site.Params.article.showBreadcrumbs | default false) }}
|
|
{{ partial "breadcrumbs.html" . }}
|
|
{{ end }}
|
|
<h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
|
|
{{ .Title | emojify }}
|
|
</h1>
|
|
</header>
|
|
<section class="max-w-full mt-6 prose dark:prose-invert">
|
|
{{ .Content | emojify }}
|
|
</section>
|
|
<footer class="pt-8">
|
|
{{ partial "sharing-links.html" . }}
|
|
</footer>
|
|
</article>
|
|
{{ end }}
|