- Make changes in the source code in calvincodes.github.io-src repo.
- Run it locally using
hugo server
- Push changed to origin in calvincodes.github.io-src
- Make a fresh clone of calvincodes.github.io on your local.
- Copy the modified files from source repo to this fresh clone.
- Remove the public folder from this cloned repo (rm -rf public)
git submodule add -f -b master https://github.com/calvincodes/calvincodes.github.io.git public
- Commit the modified files and public folder - then push them to origin.
- Now regenrate the public folder and push it to origin again
hugo
cd public
git add .
git pull
git commit -m "Build website"
git push origin master
cd ..