问题
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
回答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="">
来源:https://stackoverflow.com/questions/63047259/gh-pages-relative-path-not-found