Css doesn't load #23364
-
Hello there everyone my CSS doesn’t load I saved it a path above under a folder called: “.css” in my code of the index.html I added: Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
In general a relative link will be better, because it should work both locally and in Pages. Exactly what is going on would require a look at your repository structure. Things to look at:
|
Beta Was this translation helpful? Give feedback.
-
I tried …/…/ and …/…/ (2 dots) Yes capitalization is correct and I am an kali user not Windows Edit: I just noticed github keeps on adding by the two dots another dot so I added: (2 dots) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Edit: Because I just noticed github made my first reply from two dots into three I will just say in the future: (2 Dots) |
Beta Was this translation helpful? Give feedback.
-
GitHub - JTzLinux/TestWikiContribute to JTzLinux/TestWiki development by creating an account on GitHub. I kept it simple for testing and already a simple line of code doesn’t work that great on github XD |
Beta Was this translation helpful? Give feedback.
-
I see two issues there:
Rename the |
Beta Was this translation helpful? Give feedback.
-
Hello there airtower-luna, Edit: So I tried it and it seems to work |
Beta Was this translation helpful? Give feedback.
I see two issues there:
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 toindex.html
).The
.css
directory doesn’t make it to the deployed site. This is because of how Jekyll treats the Directory Structure:Rename the
.css
directory tocss
, 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.