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.
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.