🐛 Issue: Unable to resize author image in Toha v4 #1057
Replies: 2 comments
-
|
Please, follow this guide to update any layout template. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I’ve fixed this by adding inline CSS directly to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hugo version:
0.146.0Toha version:
v4OS:
Ubuntu 24.04📝 Problem description
I’m trying to increase the size of the author image on the homepage.
In
author.yaml, I configured:But on the homepage the author image is rendered too small. Looking into the code, I found this in
partials/home.html:{{ $authorImage = $authorImage.Fit "148x148" }}I tried changing
148x148to a larger size (e.g.,300x300), but I’m not sure if this is the proper way to adjust the size. I also want to make sure the image stays responsive and looks correct on all screen sizes.💡 What I’ve tried
✅ Updated the value in
partials/home.html✅ Cleared Hugo cache and rebuilt site (
hugo server -D)✅ Put a higher resolution image in
assets/images/author/me.pngBut the image still looks small or pixelated.
❓ Request
Could you clarify:
Fit) or use CSS for this?✅ Expected behavior
Beta Was this translation helpful? Give feedback.
All reactions