From a59dec7083202c9e8bcef8640adf35e091d1a5f2 Mon Sep 17 00:00:00 2001 From: William Diakite Date: Tue, 3 Oct 2023 00:27:41 -0400 Subject: [PATCH] fix redirection bugs --- package-lock.json | 6 +++--- src/lib/components/Footer.svelte | 2 +- src/lib/i18n/translations.ts | 20 ++++++++++---------- src/lib/labouvroir | 2 +- src/lib/styles/style.css | 4 ++++ svelte.config.js | 1 + 6 files changed, 20 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index f4c92fd..d21befc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1848,9 +1848,9 @@ } }, "node_modules/get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "dev": true, "engines": { "node": "*" diff --git a/src/lib/components/Footer.svelte b/src/lib/components/Footer.svelte index 1375862..14f58c7 100644 --- a/src/lib/components/Footer.svelte +++ b/src/lib/components/Footer.svelte @@ -63,7 +63,7 @@

- À propos link logo

diff --git a/src/lib/i18n/translations.ts b/src/lib/i18n/translations.ts index 7eaf7ec..05f5e23 100644 --- a/src/lib/i18n/translations.ts +++ b/src/lib/i18n/translations.ts @@ -38,13 +38,13 @@ const translations: { [locale: string]: { [path: string]: string } } = { 'route.projects': `${base}/projects`, 'route.services': `${base}/our-services`, 'route.about': `${base}/about`, - 'route.about.presentation': `${base}/about/presentation`, + 'route.about.presentation': `${base}/about`, 'route.about.team': `${base}/about/members`, 'route.about.coc': `${base}/about/code-of-conduct`, - 'route.services.presentation': `${base}/our-services/presentation`, - 'route.services.equipement': `${base}/our-services/equipement`, - 'route.services.reservation': `${base}/our-services/reservation`, - 'route.services.meetups': `${base}/our-services/meet-ups`, + 'route.services.presentation': `${base}/our-services`, + 'route.services.equipement': `${base}/our-services#quipements`, + 'route.services.reservation': `${base}/our-services#reservation`, + 'route.services.meetups': `${base}/our-services#meet-ups`, // Homepage 'home.projects.title': 'Latest projects & publications', @@ -145,13 +145,13 @@ const translations: { [locale: string]: { [path: string]: string } } = { 'route.projects': `${base}/projets`, 'route.services': `${base}/nos-services`, 'route.about': `${base}/a-propos`, - 'route.about.presentation': `${base}/a-propos/presentation`, + 'route.about.presentation': `${base}/a-propos`, 'route.about.team': `${base}/a-propos/membres`, 'route.about.coc': `${base}/a-propos/code-de-conduite`, - 'route.services.presentation': `${base}/nos-services/presentation`, - 'route.services.equipement': `${base}/nos-services/equipements`, - 'route.services.reservation': `${base}/nos-services/reservation`, - 'route.services.meetups': `${base}/nos-services/rencontres`, + 'route.services.presentation': `${base}/nos-services`, + 'route.services.equipement': `${base}/nos-services#quipements`, + 'route.services.reservation': `${base}/nos-services#rservation`, + 'route.services.meetups': `${base}/nos-services#points-de-rencontre`, // Homepage 'home.projects.title': 'Projets à l’affiche', diff --git a/src/lib/labouvroir b/src/lib/labouvroir index fda60c2..f89fb72 160000 --- a/src/lib/labouvroir +++ b/src/lib/labouvroir @@ -1 +1 @@ -Subproject commit fda60c2b866034af4d248944de317efbf4120d21 +Subproject commit f89fb72ef25014e0bb89e37e061c127d966548e1 diff --git a/src/lib/styles/style.css b/src/lib/styles/style.css index a3a7107..e3834f4 100644 --- a/src/lib/styles/style.css +++ b/src/lib/styles/style.css @@ -213,6 +213,10 @@ a { font-weight: 500; } +.text-body>h2 { + margin-bottom: 1.4rem; +} + .text-body>*+ul, .text-body>*+ol { margin-top: 1rem; diff --git a/svelte.config.js b/svelte.config.js index 301bb78..179d10a 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -13,6 +13,7 @@ const config = { adapter: adapter(), prerender: { // handleHttpError: (err) => console.log('[buildError]', err) + handleMissingId: (err) => console.log('[buildError]', err) }, paths: { base: dev ? '' : process.env.BASE_PATH