Hello,
I am still pretty new to HUGO. So far I’m totally enthusiastic and got over every hurdle very quickly. But now I’m facing a problem that I can’t solve.
I have a Footer.html. This is used in the Index.html and all other pages. The structure is
/index.html
/layouts/xyz.html
/layouts/xzy.hmtl
In the Footer.html a background image is defined:
div class=“footer-bg” style=“background image: url(’{{ .Site.Params.footer }}’)”
In the config.toml the image:
footer = “images/footer_bg.png”
In the Index.html he finds the image. But of course not for all other pages. Since I define the image in the Footer.html, it’s no use asking what the page is called. Someone surely had this problem before and would be very happy about a tip.
Greetings
Matze