Skip to content

Css doesn't load #23364

Answered by airtower-luna
JTzLinux asked this question in General
Discussion options

You must be logged in to vote

I see two issues there:

  1. The path to the CSS file is wrong. The index.html file currently includes ../../.css/index.css, when from the directory layout it needs to be .css/index.css (because the .css folder is next to index.html).

  2. The .css directory doesn’t make it to the deployed site. This is because of how Jekyll treats the Directory Structure:

Every file or directory beginning with the following characters: . , _ , # or ~ in the source directory will not be included in the destination folder.

Rename the .css directory to css, fix the relative path, and it should work. 🙂 Alternatively (for 2.) you could disable Jekyll for your site, but I think renaming is less confusing.

Replies: 7 comments

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
Answer selected
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
2 participants