Workshop website template
- Install Hugo
- Clone the repo
git clone https://github.com/safeav/safeav.github.io.git
cd safeav.github.io
- Run
hugo
in thepwd
. This will build the website locally - To watch on localhost, run
hugo server --watch
. This is will give a localhost link.
index.html
inlayout/
is to be edited/changed.index.html
instatic/categories
is to be edited/changed. Replace the ml4ad with our website.- Adding the images content in
static/img
. index.html
instatic/tags
is to be edited/changed. Replace the ml4ad with our website.
Note: Verify locally first and then push to github
- Run
hugo
inpwd
, after editing the files. This will generate thepublic
folder, which is then used for the deployment. - Steps to push local data to the remote
git checkout main
git add .
git commit -m " updated"
git push origin main
- We are using
gh-pages
for the deployment.
git checkout gh-pages
git fetch origin gh-pages
git rm -rf .
git checkout main -- 'public/*'
mv -f public/* .
rm -r public
git add .
git commit -m "updated"
git push origin gh-pages
- The website will be live with the changes at [https://safeav.github.io/]