So there is a folder named "images" in Public.
Funny thing is it was working fine till I uploaded on github pages, and then when I refreshed, it just broke. The images dont load either on the github pages nor on local anymore. ://
<img src= "images/equilibrium.jpg" alt="equilibrium background" />
CodePudding user response:
Add your GitHub repo name in your src like so :
<img src= "/yourRepoName/images/equilibrium.jpg" alt="equilibrium background" />
CodePudding user response:
Just add / at the beginning of source url.
<img src="/images/equilibrium.jpg" alt="equilibrium background" />