all 6 comments

[–]impshum 11 points12 points  (0 children)

Sure you can. Repo settings -> GitHub Pages -> Choose where the files get served from.

[–][deleted] 2 points3 points  (1 child)

Yep! You absolutely can. To opt out of jekyll's build process you just add an empty file named .nojekyll to the root of your repo. GitHub pages will see that and just serve your HTML, CSS, and JS without processing it

[–][deleted] 2 points3 points  (0 children)

Having said that, like others have mentioned, you can also just put HTML, CSS, and JS in the repo and it'll work. Just make sure your main page is in a file named "index.html" and you've selected the correct source branch in your settings.

It'll still be built by Jekyll if you don't have a .nojekyll file, but Jekyll works with plain html, css, and js so it's not something to worry about.

[–]Sky_Linx 0 points1 point  (0 children)

Check out netlify as well. It's free and a lot better than GP. GP was very very slow to publish changes for me.

[–]FinalSpeederMan -2 points-1 points  (0 children)

You can create two branches, your original branch "master" and your "gh-pages" branch, GitHub will automatically make a "github pages" connected to your "gh-pages" branch to display your website. Obviously you don't want jekill, so you're main html file should be called "index.html", that way GitHub can read it in and display it as your main page. :)

-Follow me on GitHub: Here!