Hello there, I’m quite new to hugo and also quite clueless about html, css etc. So good prerequisits you see
Anyways, I managed to get an image working as a background, by adding a body:after tag in the style.css with the line
background-image: url(“BG.png”);
amongst some others about where and how to place it etc.
However, I want to be able to have specific background images depending on what site I am on.
Ideally it would be specified in each sites (i.e. .md file’s) front matter, with a line that should look something like:
background = ‘BG.png’
or:
background = /images/BG.png
(images being a subfolder of static)
Although I am not quite sure about what it exactly would look like so Hugo could interpret it properly
Is something like this possible at all?
And if so, what would have to be done and which files would have to be edited?
I remember something about being able to change what can go into the front matter, perhaps through an archetype.
I sadly really am quite a beginner still, and don’t understand how it all comes together quite yet, but hope that an answer to this question would help me get closer to an understanding of it all, plus obviously solve the problem itself.
If there’s something I forgot to mention, let me know.
Thank you so much already, and I appreciate all the input I can get