summaryrefslogtreecommitdiff
path: root/themes/blowfish/layouts/partials/home/profile.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/blowfish/layouts/partials/home/profile.html')
-rw-r--r--themes/blowfish/layouts/partials/home/profile.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/themes/blowfish/layouts/partials/home/profile.html b/themes/blowfish/layouts/partials/home/profile.html
new file mode 100644
index 0000000..70e4ac9
--- /dev/null
+++ b/themes/blowfish/layouts/partials/home/profile.html
@@ -0,0 +1,37 @@
+{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
+<article class="{{ if not .Site.Params.homepage.showRecent }}
+ h-full
+ {{ end }} flex flex-col items-center justify-center text-center">
+ <header class="relative px-1 py-1 flex flex-col items-center mb-3">
+ {{ with .Site.Author.image }}
+ {{ $authorImage := "" }}
+ {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }}
+ {{ $authorImage = resources.GetRemote . }}
+ {{ else }}
+ {{ $authorImage = resources.Get . }}
+ {{ end }}
+ {{ 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 }}
+ {{ end }}
+ <h1 class="text-4xl font-extrabold">
+ {{ .Site.Author.name | default .Site.Title }}
+ </h1>
+ {{ with .Site.Author.headline }}
+ <h2 class="text-xl text-neutral-500 dark:text-neutral-400">
+ {{ . | markdownify | emojify }}
+ </h2>
+ {{ end }}
+ <div class="mt-1 text-2xl">
+ {{ partialCached "author-links.html" . }}
+ </div>
+ </header>
+ <section class="prose dark:prose-invert">{{ .Content | emojify }}</section>
+</article>
+<section>
+ {{ partial "recent-articles/main.html" . }}
+</section> \ No newline at end of file