E
E
Evgeny Ivanov2017-04-05 10:16:06
HTML
Evgeny Ivanov, 2017-04-05 10:16:06

How to set paths to images in GitHub Pages?

I have a simple html site. Page and picture.
Everything works locally (I have worked with both hosting and dedicated servers - I have experience, there are no errors in the code)
All this is uploaded and works on GitHub Pages. But the pictures are not displayed, although they are in the project (on the server).
Path to the image in the page code
images/cs.png
Path to the image on the page, but there is no image on this path (source code of the page).
https://логин_хаба.github.io/images/cs.png
The path from the github repository. I logged into my account, went to the repository and found this picture file

https://github.com/логин_хаба/логин_хаба.github.io/blob/master/images/cs.jpg?raw=true

How to set paths to images in GitHub Pages? I thought that github would work like any hosting.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2017-04-05
@iiiBird

they are on the path
login_hub.github.io/repository_name/images/cs.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question