Github Pages 404 in node_modules folder
I am trying to render GitHub in a Publisher-Subscriber module with JavaScript using GitHub pages. The branch gh-pages
looks great. However, the mustache code is not showing up in my project on the GitHub pages. It looks like this:
GitHub repository: https://github.com/ajhalthor/pubsub-application
Github Pages Repo for this project: https://ajhalthor.github.io/pubsub-application/
The GitHub repository also has a folder node_modules
, so it should be self-contained. Mustache, jQuery and Bootstrap are included in this folder so there are no xrefs or CDNs.
The main question . Why is there no rendering of the mustache even though all paths are relative to the main project folder?
source to share
The Github pages use the Jekyll version, which ignores the folder by default node_modules
.
According to this article blog articles . You can do the following:
Create an empty text file
.nojekyll
at the root of the gh pages branch.
You can also refer to the announcement from github , which talks about an update that is responsible for this behavior.
source to share