From d35641072d4531591d01fef03d3cc650510b3657 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Sat, 6 Sep 2025 22:43:07 +0200 Subject: Author portrait --- hugo.toml | 5 ++--- layouts/index.html | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hugo.toml b/hugo.toml index 85b57dd..d1ddfa9 100644 --- a/hugo.toml +++ b/hugo.toml @@ -73,12 +73,11 @@ disableDefaultLanguageRedirect = true # For displaying a logo, adjust to your file's name in your project's hugo.toml. Otherwise the theme uses title instead # logo = "/logo.svg" - # Place files under static/images if you want to display a small image under the title of your homepage - # homepageImage = "/images/my-portrait.jpg" - [params.author] name = "Your Name" email = "your@email.com" + # Place portrait under static/images if you want to display a small image under the title of your homepage + # portrait = "/images/my-portrait.jpg" # Structure your social media profiles like this in your hugo.toml # [[params.socials]] diff --git a/layouts/index.html b/layouts/index.html index 50fbc82..85558ad 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@

{{ with .Title }}{{ . }}{{ else }}{{ site.Title | default "Welcome to my Blog!" }}{{ end }}

- {{- with site.Params.homepageImage }} + {{- with site.Params.author.portrait }} {{ . }} {{- end }} {{- with .Content }} -- cgit v1.2.3