Skip to content

CSS is not being applied to my html pages #22832

Discussion options

You must be logged in to vote

Glad you fixed it already! To give you some more info, and to leave some for anyone in the future that finds this, GitHub Pages uses Jekyll to build sites by default. Jekyll excludes files and directories that start with certain special characters like _ unless you explicitly include them inside your _config.yml file. You can see a list of them here:

https://docs.github.com/en/github/working-with-github-pages/about-github-pages-and-jekyll#configuring-jekyll-in-your-github-pages-site

To prevent this in future you can either:

  • Rename the file or directory
  • Explicitly include the file/directory in the _config.yml file
  • Disable Jekyll altogether if you’re not using it by creating an empty file …

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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