I have a test site here that has only one image tag which I can not get to load:
https://jamie-siminoff-007.github.io/
The index file is:
<!DOCTYPE html>
<html>
<body>
<img src="_heart.png" alt="foo">
</body>
</html>
This is a git page so it is completely hosted on GitHub and the repo is here:
https://github.com/jamie-siminoff-007/jamie-siminoff-007.github.io
What am I missing?
FYI, I can put in what I call the raw link as seen below for the src and it works:
https://raw.githubusercontent.com/jamie-siminoff-007/jamie-siminoff-6.github.io/master/_heart.png
but this does not seem like the correct way. Surely when GitHub made pages, they have a way for you to use relative paths.
Research
Images in github pages and relative links ... not related
https://pages.github.com ... nothing relevant
https://help.github.com/en/categories/github-pages-basics ... nothing on images
More Info.
I found that google dev tools has a neat feature where you can change the src attribute of the image and it will update the page in real time.
This is how I found out that the raw link worked.
More More Info.
I am starting to think that my GitHub pages need further configuration but I'm not sure.
I checked my configuration and I am configured to publish on the master branch which is good b.c. it is the only branch I have.