From 6ce65e20bfec31b46c5ac471022b7949b1e34c29 Mon Sep 17 00:00:00 2001 From: Renaud Heluin Date: Sun, 11 Feb 2024 14:05:27 +0000 Subject: [PATCH] fix: package name forbidden --- src/components/{pages => page}/PageView.Astro | 2 -- src/pages/[lang]/index.astro | 2 +- src/pages/[lang]/mentions-legales.astro | 2 +- src/pages/index.astro | 2 +- src/pages/mentions-legales.astro | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) rename src/components/{pages => page}/PageView.Astro (85%) diff --git a/src/components/pages/PageView.Astro b/src/components/page/PageView.Astro similarity index 85% rename from src/components/pages/PageView.Astro rename to src/components/page/PageView.Astro index 5ce041a..0b83a9a 100644 --- a/src/components/pages/PageView.Astro +++ b/src/components/page/PageView.Astro @@ -1,6 +1,4 @@ --- -import { getLangFromUrl } from "@i18n/utils"; - const { notIndexable = false } = Astro.props; // pour ne pas indexer deux fois la page index qui avec et sans slug /index et /fr/index const indexOrNot = !notIndexable && { "data-pagefind-body": true }; diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index ee82aa9..de4f417 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -1,7 +1,7 @@ --- import Seo from "@components/Seo.astro"; import getMDXcomponents from "@components/mdx/getMDXcomponents"; -import PageView from "@components/pages/PageView.astro"; +import PageView from "@components/page/PageView.astro"; import { TinaReactHelper } from "@components/tinacms/react"; import { getIndexPageByLang } from "@contentConfig"; import { code_languages } from "@i18n/ui"; diff --git a/src/pages/[lang]/mentions-legales.astro b/src/pages/[lang]/mentions-legales.astro index 2de4e81..4e9d803 100644 --- a/src/pages/[lang]/mentions-legales.astro +++ b/src/pages/[lang]/mentions-legales.astro @@ -1,6 +1,6 @@ --- import Seo from "@components/Seo.astro"; -import PageView from "@components/pages/PageView.astro"; +import PageView from "@components/page/PageView.astro"; import { TinaReactHelper } from "@components/tinacms/react"; import { getMentionsLegalesByLang } from "@contentConfig"; import { code_languages } from "@i18n/ui"; diff --git a/src/pages/index.astro b/src/pages/index.astro index 0ba1557..ede0ac0 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,7 @@ --- import Seo from "@components/Seo.astro"; import getMDXcomponents from "@components/mdx/getMDXcomponents"; -import PageView from "@components/pages/PageView.astro"; +import PageView from "@components/page/PageView.astro"; import { getIndexPageByLang } from "@contentConfig"; import { getLangFromUrl, useTranslations } from "@i18n/utils"; import Base from "@layouts/Base.astro"; diff --git a/src/pages/mentions-legales.astro b/src/pages/mentions-legales.astro index 0c02862..f0fc299 100644 --- a/src/pages/mentions-legales.astro +++ b/src/pages/mentions-legales.astro @@ -1,6 +1,6 @@ --- import Seo from "@components/Seo.astro"; -import PageView from "@components/pages/PageView.astro"; +import PageView from "@components/page/PageView.astro"; import { getMentionsLegalesByLang } from "@contentConfig"; import { getLangFromUrl, useTranslations } from "@i18n/utils"; import Base from "@layouts/Base.astro";