Updating the Theme
From time to time, the underlying Hugo Theme Relearn clone may be updated. This page gives the directions for updating your textbook to the latest theme.
- Save and commit any work done on the textbook and push to GitLab. Wait until the deployment completes before continuing.
- In the site’s directory, open the
themes/hugo-theme-relearn
directory:cd themes/hugo-theme-relearn
. - Check out the
main
branch of the theme if you haven’t already:git checkout main
. - Pull the latest version of the theme:
git pull
. - Change directory back to the site’s directory:
cd ../../
. - Preview the changes:
hugo serve
. - If everything looks good, commit and push:
git commit -m "Update Theme" && git push
- It should show
modified: themes/hugo-theme-relearn (new commits)
when runninggit status
to confirm that the theme is being updated.
- It should show
- The site should deploy with the new theme.