-
hi, its the first time Im doing this and I followed this guide using jekyll: https://medium.com/20percentwork/creating-your-blog-for-free-using-jekyll-github-pages-dba37272730a The website works fine hosted on my localhost but look how broken its on github: I bet this must be a common noob error but I couldnt find a solution searching the forum. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 4 replies
-
If you look at the page source, the style sheet links to
but that file doesn’t exist, so that is not the location in the github repository. Either you need a folder named “assets” in the github repository, and main.css in that folder, or you need to fix the web files to point to where the main.css file actually is. |
Beta Was this translation helpful? Give feedback.
-
I’m having the same issue. I’m not sure if your reply applies to my site as well, but I did try to add body tags in my index.html file, it’s not working still. My site serves right locally, but the github pages version does not show the correct theme, and rather an unstyled website. In my repo’s settings, it says the theme that I want is being used, however, it is not displayed. https://reganconnell.github.io/regan-connell/ Here’s my repo: https://github.com/reganconnell/regan-connell |
Beta Was this translation helpful? Give feedback.
-
Hey Regan, were you able to get this sorted? Your theme looks good now… I’m running into the same .CSS issue on my pages site currently. |
Beta Was this translation helpful? Give feedback.
-
Me too. Did any of the above people fix their problem? |
Beta Was this translation helpful? Give feedback.
-
I needed to change my repo name from “me” to “billykatz.github.io” That fixed my issues |
Beta Was this translation helpful? Give feedback.
-
I tried making my portfolio website by downloading everything from a website and then changing the words and images. |
Beta Was this translation helpful? Give feedback.
-
https://yhammad76.github.io/The-Dice-game-2/ I have the same problem! any suggestion? |
Beta Was this translation helpful? Give feedback.
-
you may need to check your image directory to be sure it is correct, try this include two dots and a forward slash if the file is in a subfolder |
Beta Was this translation helpful? Give feedback.
-
IN MY CASE THERE WAS A OPEN PULL REQUEST , CLOSED IT AND THE JAVASCRIPT FILE WORKED |
Beta Was this translation helpful? Give feedback.
If you look at the page source, the style sheet links to
but that file doesn’t exist, so that is not the location in the github repository.
Either you need a folder named “assets” in the github repository, and main.css in that folder, or you need to fix the web files to point to where the main.css file actually is.