US9_se-ballader-sur-le-site #10

Merged
pntbr merged 14 commits from US9_se-ballader-sur-le-site into main 2026-03-22 20:48:52 +00:00
Owner
No description provided.
Move .breadcrumb rules out of styles.css and .partenaires rules out of
footer.css into standalone breadcrumb.css and partenaires.css files,
each inlined at component level.
- Add partenaires.mjs global data (list of partner orgs with url/logo)
- Add partenaires.njk component driven by the data file
- Add breadcrumb.njk component with inline CSS
- Remove hardcoded partner list from footer.njk (now uses include)
- Replace h2 with h1 on index, audit, 404, and carnet-de-fiches pages
- Replace custom fiche-nav and fiche-footer with shared header/footer includes
- Add breadcrumb component to fiche layout, carnet-de-fiches, and mentions-légales
- Replace .site-header h1 a with .site-header__brand BEM class
- Move breadcrumb out of default.njk layout into individual pages
- Rename page title "Toutes les fiches" → "Carnet de fiches"
- Create src/fiches-par-type.njk (paginated on typesConfig)
- Create src/_includes/components/carnet-body.njk (shared include)
- Reduce src/carnet-de-fiches.njk to a wrapper
- Add selectattr filter in eleventy.config.js
- Update index.njk type links to use segment URLs
- Add display:inline-block and text-decoration:none to .carnet-filter__btn
- Remove state.type, bindFilter type, and syncURL type logic
- Add syncTypeLinks() to keep ?maturite= param when navigating between types
- fiche.njk: alias animation → fiche, eleventyComputed updated accordingly
- permalink: /fiche/{type}/ → /fiches/{type}/ (consistent with type pages)
- default-fiche.njk: replace remaining animation.* references with fiche.*
  (frontmatter, content, edit link)
breadcrumb.njk now supports breadcrumbCrumbs (intermediate links) and
breadcrumbTitle (label override) — falls back to title if unset.

- /fiches/ → Accueil > Fiches (via breadcrumbTitle in frontmatter)
- /fiches/{type}/ → Accueil > Fiches > {Type} (via set before include)
- /fiches/{type}/{slug}/ → Accueil > Fiches > {Type} > {titre} (via layout)
- Remove carnet-de-fiches.{njk,css,js} and carnet-body.njk
- Add fiches.{njk,css,js} and fiches-body.njk as replacements
- Update tokens.css comment and README to reflect new names
Groups logo and baseline text into a .site-header__brand-area flex
container, and switches .site-header__inner to column layout so the
search bar can sit below on its own row.
Removes fixed 200px width and switches to full-width layout.
Adds comprehensive token overrides and component styles for
Pagefind UI: input, results list, excerpt, highlight marks,
and "show more" button — all scoped under .site-search.
Breadcrumb, header, meta dl and corps div are now rendered in
fiche.njk and passed as {{ content }} to default-fiche.njk.
Removes skip-link from the layout (handled at a higher level).
Move all per-component <style> blocks into default.njk and
default-fiche.njk. Pages declare pageCSSFile / pageJSFile in
frontmatter; the layout reads and minifies them via readFile/readJS
filters. JS is now inlined and minified instead of served as a
separate request.
Add terser dependency for JS minification at build time.
Add readFile and readJS filters to inline CSS/JS from the filesystem.
Add jsmin async filter wrapping terser. Remove JS passthrough copy
since scripts are now inlined.
Replace hero.png with hero.webp in the <img> src attribute.
Delete the 3.5 MB PNG from assets.
pntbr merged commit 11c31ba601 into main 2026-03-22 20:48:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kouzheran/animspi_kouzheran_fr!10
No description provided.