Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 21 of 28

Re: index.html not working

Thanks! This solved my problem! 

Ground Controller Lvl 1
Message 22 of 28

Re: index.html not working

I had the same problem and it was because I had an empty line before<!doctype html> in my index.html

Copilot Lvl 2
Message 23 of 28

Re: index.html not working

Thanks Louvivien! That was my issue as well--never would have solved it without your tip.

Highlighted
Ground Controller Lvl 1
Message 24 of 28

Re: index.html not working

I just had this exact same problem, but AFTER it was working

 

It happened because I had to reset the gh-pages branch. So I

  1. git branch -D gh-pages
  2. git push -d origin gh-pages

Then I had a script create an orphan branch gh-pages, populate it, and push it. Before this, everything worked without /index.html, but after, I had to add /index.html. I must have triggered a bug by accident.

 

The fix was was go into the settings and change the GitHub Pages Source branch to master, then back to gh-pages. This toggle was able to get around the bugged state I found myself in and everything is good again.

Ground Controller Lvl 1
Message 25 of 28

Re: index.html not working

Hello,

Had the same error.

 

Solved by adding language property to html tag:

<html lang="en">

 

Or maybe because it just created another build?

Ground Controller Lvl 1
Message 26 of 28

Re: index.html not working

Same thing fixed it for me :-/

Ground Controller Lvl 2
Message 27 of 28

Re: index.html not working

- Create a file named "_config.yml" with "theme: none" written inside of it (all without quotes) into the home/main directory where your "index.html" file is placed.

 

Github Pages is searching for a configuration file for theme (if required) which is what probably does not exist in your case. Try this method, it should work.

Ground Controller Lvl 1
Message 28 of 28

Re: index.html not working

your github project name does not contain .github.io at the end. It should be nicksworld.github.io/Codes-js-demo.github.io/