Skip to content

Unable to access resources in folder( with name starting with .) #22592

Answered by Gr8Warrior
Gr8Warrior asked this question in General
Discussion options

You must be logged in to vote

GitHub Pages uses Jekyll by default to build Pages sites. Because of the way that Jekyll works, any files or folders that start with _, ., # or end with ~ are not built:

https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/

If you’re not using Jekyll, you can add an empty file named .nojekyll to the root of your publishing source to avoid this.

If you are using Jekyll, you can use the include directive in your _config.yml file to explicitly include these files/folders:

https://jekyllrb.com/docs/configuration/options/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant