Commencer un site web
Avant de commencer un nouveau site web, appelé nouveau projet, il faut d'abord installer Hugo. Une fois Hugo installé, on peut commencer un nouveau projet en lançant la ligne de commande.
hugo new project [NOM DU PROJET]
cd [NOM DU PROJET]
git init
cd themes
git clone https://github.com/clente/hugo-bearcub.git themes/bearcub-[NOM DU PROJET]
echo "theme = 'bearcub-[NOM DU PROJET]'" >> hugo.toml
hugo server
Le thème bearcub a besoin d'un field spécial sans quoi il ne fera pas d'aperçu: il faut ajouter les informations suivantes au hugo.toml (à la fin)
[params.author]
name = "John Doe" # Your name as shown in the RSS feed metadata
email = "me@example.com" # Added to the footer so readers can reply to posts