diff options
author | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 22:54:34 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 22:54:34 +0200 |
commit | 8f3d03b1888fed23e6aa07d6077045e673357481 (patch) | |
tree | a914b8f43b8486380ccc1c35721b28da2ff7986a /themes/blowfish/layouts/partials/home/profile.html | |
parent | 8db6bd0e555dca050d7d885582100c5ca5ba3aa2 (diff) |
Diffstat (limited to 'themes/blowfish/layouts/partials/home/profile.html')
-rw-r--r-- | themes/blowfish/layouts/partials/home/profile.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/themes/blowfish/layouts/partials/home/profile.html b/themes/blowfish/layouts/partials/home/profile.html index 09e8ada..e415db1 100644 --- a/themes/blowfish/layouts/partials/home/profile.html +++ b/themes/blowfish/layouts/partials/home/profile.html @@ -3,7 +3,7 @@ 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 }} + {{ with .Site.Params.Author.image }} {{ $authorImage := "" }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $authorImage = resources.GetRemote . }} @@ -12,16 +12,16 @@ {{ end }} {{ if $authorImage }} {{ if not $disableImageOptimization }} - {{ $authorImage = $authorImage.Fill "288x288" }} + {{ $authorImage = $authorImage.Fill (print "288x288 q" ( $.Site.Params.Author.imagequality | default "96" )) }} {{ end }} - <img class="mb-2 rounded-full h-36 w-36" width="144" height="144" alt="{{ $.Site.Author.name | default " Author" }}" + <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.Author.name | default .Site.Title }} + {{ .Site.Params.Author.name | default .Site.Title }} </h1> - {{ with .Site.Author.headline }} + {{ with .Site.Params.Author.headline }} <h2 class="text-xl text-neutral-500 dark:text-neutral-400"> {{ . | markdownify }} </h2> |