href relative links broken in git hub pages

link to website in GitHub pages git hub repository when i pushed my code to git hub i tried to use git hub pages to display a simple recipe website i created but when i load the website it takes me to the index.html file and when i try to go to the lasagne recipe it says "error 404 there isn’t a GitHub pages site here." here i dont know how to fix this and i just want to set up a place for all my future projects to be stored I have only just started programming so any help would be useful

>Solution :

Make href=""

or remove "../"

You should also rename lasagne.html to index.html to have less sub directories and contain all files for lasagna in a folder under recipes.

Leave a Reply