Make sure you have Hugo
package installed. Check https://gohugo.io/installation/linux/
. For Debian distributions:
sudo apt install hugo
If you rather have it all dockerized pull the hugo image and work from there:
docker pull klakegg/hugo
To start, you need to clone the repository to your local machine.
git clone https://github.com/code-triarii/code-triarii.github.io.git
Navigate to the /content
folder and make your desired changes.
cd code-triarii.github.io/content
/themes/terminal
folder if you are unsure of what you are doing.
Before deploying, you should always test your changes. Run the Hugo server using the following command:
hugo serve
Visit localhost:1313
in your browser to see the live changes.
Build your site and make sure the docs folder gets updated.
hugo
Check if the docs folder has been changed using:
git status
Once you're satisfied with your changes:
git add .
git commit -m "Describe your changes here"
git push origin master
Wait for GitHub Actions to deploy the page.
Your changes should now be live (it needs a little bit of time to get everything running correctly). Visit code-triarii.github.io
to see them.