Become a backer or sponsor to support our work.
As literally, this module sets the background image for pages.
Module | github.com/hbstack/background-image |
---|---|
Repository | ⭐ Please consider giving a star if your like it. |
Stars | |
Version | |
Used by | |
Requirements | |
License | |
Usage | See how to use modules. |
You need to save the background image to assets/images
with the name format: background.*
, i.e. background.jpg
.
Known available image formats: webp
, png
, jpg
.
hugo.toml
1[params]
2 [params.hb]
3 [params.hb.background_image]
4 modern_format = 'webp'
hugo.yaml
1params:
2 hb:
3 background_image:
4 modern_format: webp
hugo.json
1{
2 "params": {
3 "hb": {
4 "background_image": {
5 "modern_format": "webp"
6 }
7 }
8 }
9}
Only the webp
is supported as the modern_format
.