Author SHA1 Message Date
jmartin 9956a1cbdb fix(shortcodes): éviter que Goldmark interprète </div> comme bloc de code
La fermeture du div était indentée dans le gabarit ; une fois injectée
après une liste, CommonMark la traitait comme du code indenté.
Corps du bloc sur une seule ligne avec </div> non indenté.

Made-with: Cursor
2026-04-22 18:53:34 +02:00
jmartin a6b329a698 feat(vitrine): modernisation UI (nav, home bento, typo, shortcodes)
- Header sticky, menu mobile, lien d’évitement et JS léger (site.js)
- Accueil : layouts/index.html, contenu structuré en front matter, grille bento
- Motif « parcours » en SVG statique (évite la casse minify sur path inline)
- CSS : tokens, clamp, focus-visible, prefers-reduced-motion, formulaire contact
- Footer aligné sur la charte (plus de styles inline Bootstrap)
- Shortcodes featureblock + card ; fonctionnalités en blocs featureblock
- Polices : Merienda + Source Sans 3 (remplace la pile à 5 Google Fonts)

Made-with: Cursor
2026-04-22 18:47:41 +02:00
3 changed files with 27 additions and 52 deletions
-34
View File
@@ -1,34 +0,0 @@
# Production : lancement manuel uniquement.
# Aucun push (master, site/v3, …) ne doit déployer ptits-pas.fr.
name: Déploiement Hugo production
on:
workflow_dispatch:
jobs:
deploy-production:
runs-on: self-hosted
steps:
- name: Déployer sur ptits-pas.fr (ordre explicite)
shell: bash
run: |
set -e
COMPOSE_DIR=/home/deploy/infra_v2/apps/site-vitrine
SITE_DIR=/home/deploy/infra_v2/site-vitrine
git config --global --add safe.directory "$SITE_DIR"
cd "$SITE_DIR"
# Ne pas écraser static/robots.txt (Allow prod, hors sync Git)
git fetch origin
git checkout master
git pull --ff-only origin master
/bin/cp -f /home/deploy/infra_v2/backups/robots-prod-allow-2026-10-08.txt "$SITE_DIR/static/robots.txt" 2>/dev/null || true
cd "$COMPOSE_DIR"
docker compose -f docker-compose.yml run --rm hugo-build
# Restaurer Allow dans public après build Hugo (static peut être Disallow en Git)
/bin/cp -f /home/deploy/infra_v2/backups/robots-prod-allow-2026-10-08.txt /home/deploy/infra_v2/site-vitrine/public/robots.txt
docker compose -f docker-compose.yml up -d --force-recreate site-vitrine
echo "Production mise à jour à $(date)"
-18
View File
@@ -1,18 +0,0 @@
# Staging : push sur site/v3 uniquement.
name: Déploiement Hugo Staging
on:
push:
branches:
- site/v3
jobs:
deploy-staging:
runs-on: self-hosted
steps:
- name: Déployer sur staging.ptits-pas.fr
shell: bash
run: |
set -e
git config --global --add safe.directory /home/deploy/staging
/home/deploy/infra_v2/apps/hooks/deploy-hugo.sh
+27
View File
@@ -0,0 +1,27 @@
name: Déploiement Hugo Staging
on:
push:
branches:
- master
jobs:
deploy-staging:
runs-on: self-hosted
steps:
- name: Déployer sur staging
shell: bash
run: |
# Déclare /home/deploy/staging comme safe pour Git
git config --global --add safe.directory /home/deploy/staging
# Dirige-toi dans le clone staging
cd /home/deploy/staging
# Récupère la dernière version de master
git pull origin master
# Relance le service Hugo-staging
docker compose -f /home/deploy/infra/docker-compose.staging.yml up -d
echo "Staging mis à jour à $(date)"