prestonsmith
prestonsmith

Reputation: 778

github pages site can't find content

Like in this question Github can't seem to find my scripts and content when published.

enter image description here

I've tried the suggestion solution and placed everything under the gh-pages branch but it doesn't seem to do the trick. I've also tried updating the settings to have them in the master branch with no luck there either.

Anyone have any other suggestions/insights? As you can see from the repo everything should be in the right place

EDIT: The settings for the repo are currently pointing towards the gh-pages branch per the screenshot below:

git-it-settings

Upvotes: 2

Views: 2570

Answers (4)

Stan0men
Stan0men

Reputation: 1

For me helped to add

"homepage": "https://Username.github.io/project-name"

to the package.json

Upvotes: 0

techSoftRick
techSoftRick

Reputation: 1

This is an old question, but in case anyone else runs into the same issue. I had this problem when I started the paths of referenced files with a "/" in my case the capitalization of letters, and underscores did not matter. I just simply removed the "/" and everything worked just fine.

Upvotes: 0

prestonsmith
prestonsmith

Reputation: 778

Per Briana's suggestion I reached out to Github support and they clarified what the issue was.

  • Seems that paths on Github Pages are case sensitive so the folder I had called Content was being called as content and couldn't be found.

Basically, I changed Content to content

  • Paths with an underscore will not be stored, nor called by Github Pages per their standards here Hadn't realized that either.

Basically, I changed _lib to lib

Upvotes: 2

VonC
VonC

Reputation: 1329512

I just tried http://prestonii.github.io/Git-It/, and don't get the same error.

I see a lot of Unknown property ‘-moz-osx-font-smoothing’. Declaration dropped. in hover-min.css:12.

Check if your paths are case sensitive (you have your scripts under Content, not content)

Note: prestonii.github.io/Git-It/content/animate.css refers to an html page with style embedded in it, representing a 404 page. It is not an actual stylesheet.

Upvotes: 1

Related Questions