Hacker News new | ask | show | jobs
by ingvul 1571 days ago
You can as well build the site locally (e.g., on your computer) first and commit the .html files in your page repo. GitHub pages will then serve your .html files directly without having to build your site using Jekyll. This is what I used to do when hosting my site on github pages:

- locally install jekyll

- write my .md files

- run jekyll locally to see how my site looks like

- commit .md and .html files

- let github pages know what you are pushing the static files yourself

1 comments

In such a case it is a good idea to add a .nojekyll file to keep Jekyll from still trying to build your site when you prebuild it.

Also, if you are locally generating the HTML files, you can use other SSG tools beyond Jekyll (if for instance you want to avoid Ruby on Windows).