I’m super new to developing in general and I’m using Hugo to build my first website. I have a quick question that might be dumb, but I can’t seem to find the answer.
I’m using this
background-image: url(…/images/placeholder.png’);
And my file path for the image is:
site/src/images/placeholder.png
It’s not picking up the image? I’m wondering if there is a URL problem? I’m really sorry if this is a noob question, but I’ve been searching and I can’t understand what I’m doing wrong with this image path - I’ve seen this post: https://discuss.gohugo.io/t/image-path/1721 but can’t seem to grab an answer from it.
Talves - thanks so much. This worked like a charm.
To anyone else who has this problem and is using sass or scss make sure the Static folder is in your scss folder and not your css folder when you create it!
Further, I’m guessing you are going to define a variable in a page to pass in a different image for placeholder, yeah? You can use the default function to set a default/placeholder value…
You don’t need to be sorry. I want to thank you instead, because I had had the same problem and your question helped me a lot. #we_are_all_newbies_in_this_life.