miguelsimoni / hugo-initio

Hugo Theme port of Initio bootstrap template by GetTemplate
https://themes.gohugo.io/hugo-initio/
MIT License
90 stars 119 forks source link

Can't change background #26

Closed logological closed 4 years ago

logological commented 5 years ago

The config.toml contains a background parameter which seems to be for controlling the background image on the main page. However, as far as I can tell this parameter is never used by the template. Instead, the CSS is hard-coded to always use images/bg_head.jpg.

Please consider changing the template so that it gets the image background from the background parameter.

moondra2017 commented 5 years ago

The config.toml contains a background parameter which seems to be for controlling the background image on the main page. However, as far as I can tell this parameter is never used by the template. Instead, the CSS is hard-coded to always use images/bg_head.jpg.

Please consider changing the template so that it gets the image background from the background parameter.

So this"images/guy.jpg" is also hard-coded? I can't seem to find an images folder wit this image.

mhungerford commented 5 years ago

I opened PR #28: https://github.com/miguelsimoni/hugo-initio/pull/28 That solves this.

Issue is that hugo cannot configure CSS, and that is where backgrounds to elements are provided. Fixed by doing just the path as inline CSS in the html, so it could be configured by hugo.

dbryar commented 4 years ago

This PR appears to break the parallax on new install. The banner is now a fixed image with a 90px margin top/bottom, and does not slide with page scroll