From 2a0b3b1a070f5472bae169a4b6037406f8b9504a Mon Sep 17 00:00:00 2001 From: Benjamin Lecha <benjamin.lecha@univ-lille.fr> Date: Tue, 4 Jun 2024 13:33:13 +0200 Subject: [PATCH] Sample HUGO --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index d38bef0..4d74beb 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,15 @@ Réaliser un site statique avec [Hugo](https://gohugo.io), il vous faudra appliq Pour cela la [documentation](https://gohugo.io/getting-started/quick-start/) devrait vous être très utile. +``` +hugo new site formation_docker +cd formation_docker +git init +git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke +echo "theme = 'ananke'" >> hugo.toml +hugo new content posts/my-first-post.md +``` + Une fois votre site générer, supprimer le dossier `public` et hebergé votre site dans un conteneur Docker avec un serveur web. N'hésitez pas à vous inspirer des diaposivites pour l'écriture du Dockerfile. -- GitLab