Github Pages (gh-Pages) img resource not / found / wont load?

I am using github pages and index.html is opening, but css and javascript loading but no images, I look at the path http://myusername.github.com/project-name/img/example.png and example.png will load after viewing raw, I tried to capture the images separately, but no changes were found?

+4
source share
2 answers

path is case sensitive ... png does not match PNG. What is the way to your repo?

0
source

You can use the end delimiter of the base href path from your url repository

Example:

https://github.com/YourName/Repo/ # "/" End Line Separator

Include image file path to {img / img.jpg} # With your link

+1
source

Source: https://habr.com/ru/post/1442578/


All Articles