Re-organisation du site
Cet article fait partie de la série: Hugo
Table des matières
Je commençais à me mêler les pinceaux avec tous les articles, j’ai décider de changer l’organisation du site.
Je voulais aussi des URL lisibles
Nouvelle organisation
J’ai organisé mon dossier content comme sur le diagramme dessous, les articles seront rangés par date (année, mois).
flowchart LR
A[Schrek.fr]-->B(Pages)
B-->F[About]
B-->G[search]
A-->C[Posts]
D-->K[Pages]
C-->E[2023]
E-->H(01)
E-->I(02)
E-->J(03)
A-->D[Wiki]
Les URLs
Dans mon ficher config.toml, j’ai rajouté:
[permalinks]
'/' = '/:year/:month/:title/'