Skip to content

osunyorg/classcode-site

Repository files navigation

Classcode

Hugo

Pour installer Hugo

brew install hugo

Mise à jour avec

brew upgrade hugo

Template hugo osuny

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

Theme

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

Commands

Pour lancer le site

yarn
yarn watch

Netlify

Pour déployer le site avec Netlify, penser à ajouter la deploy key.

Params

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/