Problems with images in GitHub Pages

Hi,
I’ve fairly new to Hugo. I have created a Hugo project based on the hugo-book theme.
It can be found here.
I am publishing it there using the standard Github Action found here.
This works. The resulting website seems to be identical to the local version – except that the images from static/images and the scripts from static/js are not found.
Could there be a problem with the ‘baseURL’ setting?
I’m not enough of an excerpt to attempt to edit the Github Action script.
I would appreciate any tips on what the problem may be.
Thanks in advance!

Indeed, GitHub pags serves from a subfolder https://www.example.com/subfolder.
but your baseURL in the config is just https://www.example.com/

that’s why you did not recognize it earlier…

it’s always good to have at least the same layout of subdomains/folders you plan to have in future. In fact I would consider it best practice to have the target URL in the config.

have a look at this one for possible solution using render-hooks:

and for a list of other possibilities (older): How to handle URLs when in a subfolder?