congo/layouts/partials/home/profile.html

33 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2021-08-15 08:41:40 +00:00
<article
class="{{ if not .Site.Params.homepage.showRecent }}
2021-08-15 08:41:40 +00:00
h-full
{{ end }} flex flex-col items-center justify-center text-center"
2021-08-15 08:41:40 +00:00
>
<header class="mb-3 flex flex-col items-center">
{{ $lazy := .Params.enableImageLazyLoading | default .Site.Params.enableImageLazyLoading | default true }}
{{ $altText := ($.Site.Language.Params.Author.name | default "Author") }}
{{ with .Site.Language.Params.Author.image }}
2022-01-11 01:29:21 +00:00
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ $imgClass := "mb-2 h-auto w-36 rounded-full" }}
{{ partial "picture.html" (dict "img" $authorImage "alt" $altText "class" $imgClass "lazy" $lazy) }}
2022-01-11 01:29:21 +00:00
{{ end }}
2021-08-15 08:41:40 +00:00
{{ end }}
<h1 class="text-4xl font-extrabold">
{{ .Site.Language.Params.Author.name | default .Site.Title }}
2021-08-15 08:41:40 +00:00
</h1>
{{ with .Site.Language.Params.Author.headline }}
2022-01-12 01:32:29 +00:00
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
{{ . | 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>
<section class="prose dark:prose-invert">{{ .Content | emojify }}</section>
2021-08-15 08:41:40 +00:00
</article>
<section>
{{ partial "recent-articles.html" . }}
</section>