1

Hello i try to deploy my second project website on gh-pages it's seems working but all of my images are not showing, i try different path but still not working i'm new on GitHub hope to fixed it soon thank you.

here is my website repo https://github.com/rcode321/rafaelmendozasite

raffy
  • 39
  • 5

1 Answers1

1

Check first if using relative path is enough in your gh-pages index.html file

<img class="my-image main" src="img/mypix2.jpg" alt="">
instead of
<img class="my-image main" src="/dist/img/mypix2.jpg" alt="">

The OP raffy mentions in the comments:

<img class="my-image main" src="./img/mypix2.jpg" alt="">
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755
  • i treid the first approach which is but nothing happens. could that posiible to use the raw file in the src? – raffy Jul 23 '20 at 05:59
  • @raffy I don't see any new commits in https://github.com/rcode321/rafaelmendozasite/tree/gh-pages. Only the gh-pages branch is involved for GitHub pages in your case. Modifying files in master won't have any impact. – VonC Jul 23 '20 at 06:05
  • thanks it's works i only add ./ on the path. but i'm wondering why some of the images works instantly after i change only the https://www.dropbox.com/s/gjzg47353dhqjrq/path.JPG?dl=0 and the rest of images path are not.? BTW thanks to your help VonC it's working now. – raffy Jul 23 '20 at 06:50
  • @raffy Maybe a cache issue on GitHub side? – VonC Jul 23 '20 at 07:16
  • have no idea, but it seems working fine now. but i dunno if this gonna be an issue in the near future. what do you think? is this i need to worry? – raffy Jul 23 '20 at 08:53