Background Image Module

On this page

As literally, this module sets the background image for pages.

Modulegithub.com/hbstack/background-image
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

Resources

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.

Site Parameters

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.