From 35e68bc34e52dea106daa4529b309eedb8764c59 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Wed, 29 Nov 2023 11:12:22 +0100 Subject: [PATCH] adds layouts/partials/home/profile.html without the local file the .Site.Params.Author.name and .image wont get picked up and I end up with a nearly empty start page --- layouts/partials/home/profile.html | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 layouts/partials/home/profile.html diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html new file mode 100644 index 0000000..a9063d4 --- /dev/null +++ b/layouts/partials/home/profile.html @@ -0,0 +1,36 @@ +
+
+ {{ with .Site.Language.Params.Author.image }} + {{ $authorImage := resources.Get . }} + {{ if $authorImage }} + {{ $authorImage := $authorImage.Fill "288x288 Center" }} + {{ $.Site.Language.Params.Author.name | default + {{ end }} + {{ end }} +

+ {{ .Site.Language.Params.Author.name | default .Site.Title }} +

+ {{ with .Site.Language.Params.Author.headline }} +

+ {{ . | markdownify | emojify }} +

+ {{ end }} +
+ {{ partialCached "author-links.html" . }} +
+
+
{{ .Content | emojify }}
+
+
+ {{ partial "recent-articles.html" . }} +