diff options
| author | Arne Rief <riearn@proton.me> | 2025-09-06 22:43:07 +0200 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-09-06 22:43:07 +0200 |
| commit | d35641072d4531591d01fef03d3cc650510b3657 (patch) | |
| tree | 1a6d786ea543a5814e8e8486c7de626bb59626ed | |
| parent | 359e9355cb5d1a7479091b35ea8ad47ab5fbca51 (diff) | |
Author portrait
| -rw-r--r-- | hugo.toml | 5 | ||||
| -rw-r--r-- | layouts/index.html | 2 |
2 files changed, 3 insertions, 4 deletions
@@ -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 @@ <h1 class="homepage__header-title"> {{ with .Title }}{{ . }}{{ else }}{{ site.Title | default "Welcome to my Blog!" }}{{ end }} </h1> - {{- with site.Params.homepageImage }} + {{- with site.Params.author.portrait }} <img src="{{ . }}" alt="{{ . }}" class="homepage__header-image" /> {{- end }} {{- with .Content }} |
