Personal Blog
setup environment for WSL2 Ubuntu
npm install
npm start
if you get an error saying node version is too low then install n (from SimpleNerd)
npm cache clean -f
sudo npm install -g n
sudo n stable
To create the initial gh-pages branch (from jiafulow)
git checkout --orphan gh-pages
git reset --hard
git commit --allow-empty -m "Initializing gh-pages branch"
git push origin gh-pages
git checkout main
Drop the following code or similar
{{ { paged: paged, page: page, pagination: pagination } | debugger }}
In VS Code, goto debug tab and press Javascript Debug Terminal the run npm start
- Checkount
- Setup Node.js environment
- GitHub Pages action
- Special thanks to jekyll-cd who clued me into the possibility of deploynig this way.
- Finally a straight answer on how to configure custom domains with HTTPS support for GitHub pages.