tp-hugo/README.md
2024-12-06 17:08:13 +01:00

29 lines
655 B
Markdown

Comment lancer mon site ?
UTILISATION
CREATION DU SITE 📃
Vérifier l'installation:
hugo version
Créer la structure du site:
hugo new site mon-site
Créer du contenu:
cd mon-site
hugo new posts/mon-post.md
nano posts/mon-post.md
Ajouter des medias:
images:
## Image via link:
![](https://pbs.twimg.com/media/DGKRMoPXcAIyA8y.jpg)
------
## Image via url locale (/static):
![](img/test/1.png)
videos:
## Vidéo Youtube (le code 'ZSWzPI4BqvA' correspond à l'id de la vidéo):
{{< youtube ZSWzPI4BqvA >}}
AJOUT D'UN THEME 🎨
git init
git submodule add https://github.com/halogenica/papermod.git themes/papermod
echo theme = \"papermod\" >> hugo.toml