diff options
Diffstat (limited to 'themes/blowfish/layouts/partials/home')
-rw-r--r-- | themes/blowfish/layouts/partials/home/background.html | 12 | ||||
-rw-r--r-- | themes/blowfish/layouts/partials/home/hero.html | 12 | ||||
-rw-r--r-- | themes/blowfish/layouts/partials/home/profile.html | 10 |
3 files changed, 17 insertions, 17 deletions
diff --git a/themes/blowfish/layouts/partials/home/background.html b/themes/blowfish/layouts/partials/home/background.html index 2746eea..3ba55dc 100644 --- a/themes/blowfish/layouts/partials/home/background.html +++ b/themes/blowfish/layouts/partials/home/background.html @@ -31,7 +31,7 @@ {{ end }} </div> <div class="relative px-1 py-1 flex flex-col items-center justify-center text-center"> - {{ with .Site.Author.image }} + {{ with .Site.Params.Author.image }} {{ $authorImage := "" }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $authorImage = resources.GetRemote . }} @@ -40,22 +40,22 @@ {{ 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" }}" src="{{ $authorImage.RelPermalink }}" /> + alt="{{ $.Site.Params.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" /> {{ end }} {{ end }} <h1 class="mb-2 text-4xl font-extrabold text-neutral-800 dark:text-neutral-200"> - {{ .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="mt-0 mb-0 text-xl text-neutral-800 dark:text-neutral-300"> {{ . | markdownify }} </h2> {{ end }} <div class="mt-3 mb-10 text-2xl"> - {{ with .Site.Author.links }} + {{ with .Site.Params.Author.links }} <div class="flex flex-wrap"> {{ range $links := . }} {{ range $name, $url := $links }} diff --git a/themes/blowfish/layouts/partials/home/hero.html b/themes/blowfish/layouts/partials/home/hero.html index 7a0a511..6f5be3a 100644 --- a/themes/blowfish/layouts/partials/home/hero.html +++ b/themes/blowfish/layouts/partials/home/hero.html @@ -28,7 +28,7 @@ {{ end }} </div> <div class="relative px-4 py-16 sm:px-6 sm:py-24 lg:py-32 lg:px-8 flex flex-col items-center justify-center text-center"> - {{ with .Site.Author.image }} + {{ with .Site.Params.Author.image }} {{ $authorImage := "" }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $authorImage = resources.GetRemote . }} @@ -37,22 +37,22 @@ {{ 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" }}" src="{{ $authorImage.RelPermalink }}" /> + alt="{{ $.Site.Params.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" /> {{ end }} {{ end }} <h1 class="mb-2 text-4xl font-extrabold text-neutral-200"> - {{ .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="mt-0 mb-0 text-xl text-neutral-300"> {{ . | markdownify }} </h2> {{ end }} <div class="mt-3 mb-10 text-2xl"> - {{ with .Site.Author.links }} + {{ with .Site.Params.Author.links }} <div class="flex flex-wrap"> {{ range $links := . }} {{ range $name, $url := $links }} 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> |