Pour installer Hugo
brew install hugo
Mise à jour avec
brew upgrade hugo
https://github.com/noesya/osuny-hugo-template
Pour faire la mise à jour :
git remote add template [email protected]:noesya/osuny-hugo-template.git
git fetch --all
git merge template/main --allow-unrelated-histories
https://github.com/noesya/osuny-hugo-theme
Pour cloner avec le thème
git clone [email protected]:noesya/classcode-site.git --recurse-submodules
Pour récupérer le thème
git pull --recurse-submodules
Pour lancer le site
yarn
yarn watch
Pour déployer le site avec Netlify, penser à ajouter la deploy key.
Les params principaux sont dans config.yaml du theme, pour en ajouter ou modifier il faut overider dans config/_defaults/config.yaml
cdnkey: https://osuny-1b4da.kxcdn.com
cookie_banner:
enable: true
blank: true
page: https://gdpr.eu/cookies/