Theme not working on Github Pages (PaperMod theme)

The site works properly when I run it locally but when I deploy it to Github Pages it doesn’t display the theme for some reason. I’m using the PaperMod theme and I thought it was a problem with the theme submodule at first so I tried hard copying the theme’s files into the folder instead but that didn’t fix the problem.

GitHub repository: GitHub - Alpensnow/aircraft-guide

What it is supposed to look like:


What it looks like on GitHub pages:

Check out your browser developer tools to see the error messages when the browser tries accesses your Github pages installation.
Hint: You have a bug in your JS code.

I think your main problem is, that you develop all you do using a baseURL without subfolder in your config.

later on when generating the site on github you use baseURL = 'https://alpensnow.github.io/aircraft-guide/'

I recommend to use baseURL = 'https://alpensnow.github.io/aircraft-guide/' also in your local development.

change that, rebuild your site, check the developer console for errors.

also it looks like you have stuff in assets and static that use absolute links “/…” that won’t work.

imho Papermod has a config to include custom-css check out example config and/or demo repo…