From a38a3ac614bf6a551963b6e2408ad24d71c6acb2 Mon Sep 17 00:00:00 2001 From: "Wilfried J." Date: Tue, 11 Aug 2026 22:38:22 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20remise=20en=20=C3=A9tat=20de=20la=20cha?= =?UTF-8?q?=C3=AEne=20de=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le site ne se construisait plus avec une version récente de Hugo, et servait des métadonnées erronées depuis 2023. Métadonnées : - baseURL: something-fresh.org (valeur d'exemple du thème) -> https://www.willou.com/ - description renseignée ; le thème injectait sinon son texte par défaut "Hardcoded description; the author should update :)", visible en production Compatibilité Hugo 0.164 : - languageCode -> locale (déprécié depuis 0.158.0) - params.images -> params.hugomods.images : le nom entrait en conflit avec le template Open Graph interne de Hugo, qui attendait une liste d'images - hugo-fresh 1.0.0 -> 1.2.0 (la 1.0.0 appelait _internal/google_analytics_async.html, supprimé de Hugo) - hugomods/images 0.7.0 -> 0.12.3 - Bulma maintenu en 2022 : les versions récentes ont réorganisé leurs fichiers et cassent l'import SASS du thème CI : - ubuntu-22.04 -> ubuntu-latest - checkout v3 -> v7, actions-hugo v2 -> v3, gh-pages v3 -> v4 - Hugo épinglé en 0.164.0 - submodules retiré : le thème est un module Hugo, pas un sous-module git Validé en local avec Hugo 0.164.0 extended. Le CI n'a jamais tourné avec cette configuration. --- .github/workflows/gh-pages.yml | 11 +++++------ go.mod | 5 +++-- go.sum | 7 +++++++ hugo.yaml | 25 +++++++++++++------------ 4 files changed, 28 insertions(+), 20 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a6f9ed4..fe2bc94 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,26 +8,25 @@ on: jobs: deploy: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 with: - submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.117.0' + hugo-version: '0.164.0' extended: true - name: Build run: hugo --minify - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 if: ${{ github.ref == 'refs/heads/main' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/go.mod b/go.mod index 6c53462..c0b4e4c 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module mysite go 1.20 require ( - github.com/StefMa/hugo-fresh v1.0.0 // indirect - github.com/hugomods/images v0.7.0 // indirect + github.com/StefMa/hugo-fresh v1.2.0 // indirect + github.com/hugomods/images v0.12.3 // indirect + github.com/jgthms/bulma v0.0.0-20220508134905-3e00a8e6d0d0 // indirect ) diff --git a/go.sum b/go.sum index ffbb2f3..62cca6f 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,12 @@ github.com/StefMa/hugo-fresh v1.0.0 h1:Nxo9WtzfBlaFi1G8NEHQLReJQz+Dn4jRxec+lMrPG6k= github.com/StefMa/hugo-fresh v1.0.0/go.mod h1:yRzHyco0bfnITjvq7rfAiOADfGMrDlM0kXeKBllUJEc= +github.com/StefMa/hugo-fresh v1.2.0 h1:F7j98xExM7Iu/Mz7uzgNBfPuwB3zufe4cfArSxCxpkM= +github.com/StefMa/hugo-fresh v1.2.0/go.mod h1:yRzHyco0bfnITjvq7rfAiOADfGMrDlM0kXeKBllUJEc= github.com/hugomods/images v0.7.0 h1:NEGgCSrh1YuHGmTAL9wDAKLdXL4WU6Nw4BfkampJxyM= github.com/hugomods/images v0.7.0/go.mod h1:U6Gwj16LKvk66rOMyGFrnF6f0aV8lT89lqOsckOAjYY= +github.com/hugomods/images v0.12.3 h1:FiHZnFgbxn4SpxdY8harOxhYKA8WhAgibJoHhIe9sdU= +github.com/hugomods/images v0.12.3/go.mod h1:U6Gwj16LKvk66rOMyGFrnF6f0aV8lT89lqOsckOAjYY= +github.com/jgthms/bulma v0.0.0-20220508134905-3e00a8e6d0d0 h1:d61c8CjPFq6aGikBXMepfewc8/3IbrTCiC1xHcMcvHI= github.com/jgthms/bulma v0.0.0-20220508134905-3e00a8e6d0d0/go.mod h1:89FLBKXYFKfOKAoDeUT26V0pHGwzr205cMXAEqtAVOI= +github.com/jgthms/bulma v0.0.0-20260301201300-741da22368cd h1:XeROAQGcqG0kJNA7jYYqsD7lI1P3Dx1Eboo1XNAA+Cc= +github.com/jgthms/bulma v0.0.0-20260301201300-741da22368cd/go.mod h1:89FLBKXYFKfOKAoDeUT26V0pHGwzr205cMXAEqtAVOI= diff --git a/hugo.yaml b/hugo.yaml index 46c8e75..6eb02a8 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,5 +1,5 @@ -baseURL: http://something-fresh.org/ -languageCode: en-us +baseURL: https://www.willou.com/ +locale: en-us title: Wilfried JEANNIARD module: @@ -21,7 +21,7 @@ params: # Open graph allows easy social sharing. If you don't want it you can set it to false or just delete the variable openGraph: true # Used as meta data; describe your site to make Google Bots happy - description: + description: "Wilfried Jeanniard — Directeur technique. 25 ans en édition logicielle SaaS B2B : structuration d'équipes R&D, qualité, delivery et architectures distribuées." # Preloader ensures images are loaded before displaying to the user. If you don't want it uncomment to set it to false # preloader: false navbarlogo: @@ -83,12 +83,13 @@ params: buttonText: More... - images: - alignment_center_class_name: d-block text-center - alignment_end_class_name: float-end ms-2 - alignment_start_class_name: float-start me-2 - class_name: img-fluid - figure_caption_class_name: figure-caption - figure_class_name: figure - figure_image_class_name: figure-img - modern_format: webp + hugomods: + images: + alignment_center_class_name: d-block text-center + alignment_end_class_name: float-end ms-2 + alignment_start_class_name: float-start me-2 + class_name: img-fluid + figure_caption_class_name: figure-caption + figure_class_name: figure + figure_image_class_name: figure-img + modern_format: webp