Is it possible to use post featured image from the static folder? #1307
ViniciusMenezesDev
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Here is what I did to address this issue:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi, everyone! I'm new to Hugo and I'm migrating a blog from Jekyll (website, source) to Hugo (website, source). I'm also moving from GitLab to GitHub, moving domain, etc. but that's not the problem.
I liked the Stack very much (I saw it in action here and here), but the Beautiful Hugo theme seems to work better overall with less effort.
I have a problem with post featured images (I'm not sure they are called this way on Hugo). All my posts have featured images defined in the front matter:
content/post/2026-01-30-como-configurar-a-frequencia-do-ponto-de-acesso-wi-fi-para-reduzir-a-interferencia-e-melhorar-o-sinal-parte-2-faixa-de-5-ghz.mdBeautiful Hugo correctly displays it in the post listing (index) page:
But Stack doest not:
I tried debugging the theme and I have the impression that
layouts/_partials/helper/image.htmlshould be called but it never is.Please note that the image is stored in the
staticfolder (so,static/files/2026/01/wifi-analyzer.jpg).If I use a page bundle it works:
test.mdBut that solution would require me to review all of my posts and file hierarchy, I really don't want to go that way, especially because with Beautiful Hugo it simply works as is, I believe there has to be some way to make it work with Stack as well.
Could you please help me getting that to work with the Stack theme? (use post featured image from the static folder)
Beta Was this translation helpful? Give feedback.
All reactions