From c69d0f364571ea13b79a926fdbd13b1b4c318c32 Mon Sep 17 00:00:00 2001 From: Nico Date: Fri, 3 Feb 2023 12:41:03 +0100 Subject: [PATCH] small fixes for prod --- .astro-i18n/generated.d.ts | 4 ++-- public/robots.txt | 2 +- src/components/CardEditorial.astro | 2 +- src/pages/en/tags/[tag].astro | 9 --------- src/pages/en/tags/index.astro | 7 ------- src/pages/i18n/fr.json | 2 +- 6 files changed, 5 insertions(+), 21 deletions(-) delete mode 100644 src/pages/en/tags/[tag].astro delete mode 100644 src/pages/en/tags/index.astro diff --git a/.astro-i18n/generated.d.ts b/.astro-i18n/generated.d.ts index 1f1f70c..0d8c3a4 100644 --- a/.astro-i18n/generated.d.ts +++ b/.astro-i18n/generated.d.ts @@ -1,8 +1,8 @@ type DefaultLangCode = "fr" type SupportedLangCode = "en" type LangCode = DefaultLangCode | SupportedLangCode -type RouteUri = | "/articles/[slug]" | "/articles" | "/agments/[slug]" | "/agments" | "/tags/[tag]" | "/tags" | "/" | "/plan-du-site" -type RouteParams = {"/articles/[slug]": { "slug": string; }; "/articles": undefined; "/agments/[slug]": { "slug": string; }; "/agments": undefined; "/tags/[tag]": { "tag": string; }; "/tags": undefined; "/": undefined; "/plan-du-site": undefined; } +type RouteUri = | "/articles/[slug]" | "/articles" | "/agments/[slug]" | "/agments" | "/" | "/plan-du-site" +type RouteParams = {"/articles/[slug]": { "slug": string; }; "/articles": undefined; "/agments/[slug]": { "slug": string; }; "/agments": undefined; "/": undefined; "/plan-du-site": undefined; } type TranslationPath = "accueil" | "tagline" | "copyright" | "contact.title" | "contact.email" | "contact.tel" | "contenuVide" | "header.skipLink" | "header.mainNav" | "header.homeLink" | "sitemap" | "prevNext.contenus" | "prevNext.precedent" | "prevNext.suivant" | "article.titre" | "article.tagline" | "article.published" | "meta.publication" | "meta.modification" | "meta.credit" | "fragments.titre" | "fragments.tagline" | "projet.titre" | "projet.tagline" | "projet.cta" | "projet.lienTitle" | "projet.fenetre" | "erreur.introuvable" | "erreur.autre" | "erreur.lienRetour" | "seo.article.title" | "seo.article.description" | "seo.projet.title" | "seo.projet.description" | "seo.code.title" | "seo.code.description" | "index.articles.pageName" | "index.articles.subtitle" | "index.fragments.pageName" | "index.fragments.subtitle" | "index.title" | "index.subtitle" | "index.quoi" | "index.comment" | "index.opensource" | "index.writing" | "index.latestProjects" | "index.latestArticles" | "index.allProjects" | "index.allArticles" | "index.latestSnippets" | "index.allSnippets" | "index.toc" | "contact.contenuVide" type TranslationOptions = { "accueil": {} | undefined; "tagline": {} | undefined; "copyright": {} | undefined; "contact.title": {} | undefined; "contact.email": {} | undefined; "contact.tel": {} | undefined; "contenuVide": {} | undefined; "header.skipLink": {} | undefined; "header.mainNav": {} | undefined; "header.homeLink": {} | undefined; "sitemap": {} | undefined; "prevNext.contenus": {} | undefined; "prevNext.precedent": {} | undefined; "prevNext.suivant": {} | undefined; "article.titre": {} | undefined; "article.tagline": {} | undefined; "article.published": { datetime: unknown; options: unknown; }; "meta.publication": {} | undefined; "meta.modification": {} | undefined; "meta.credit": {} | undefined; "fragments.titre": {} | undefined; "fragments.tagline": {} | undefined; "projet.titre": {} | undefined; "projet.tagline": {} | undefined; "projet.cta": {} | undefined; "projet.lienTitle": {} | undefined; "projet.fenetre": {} | undefined; "erreur.introuvable": {} | undefined; "erreur.autre": {} | undefined; "erreur.lienRetour": {} | undefined; "seo.article.title": {} | undefined; "seo.article.description": {} | undefined; "seo.projet.title": {} | undefined; "seo.projet.description": {} | undefined; "seo.code.title": {} | undefined; "seo.code.description": {} | undefined; "index.articles.pageName": {} | undefined; "index.articles.subtitle": {} | undefined; "index.fragments.pageName": {} | undefined; "index.fragments.subtitle": {} | undefined; "index.title": {} | undefined; "index.subtitle": {} | undefined; "index.quoi": {} | undefined; "index.comment": {} | undefined; "index.opensource": {} | undefined; "index.writing": {} | undefined; "index.latestProjects": {} | undefined; "index.latestArticles": {} | undefined; "index.allProjects": {} | undefined; "index.allArticles": {} | undefined; "index.latestSnippets": {} | undefined; "index.allSnippets": {} | undefined; "index.toc": {} | undefined; "contact.contenuVide": {} | undefined; } diff --git a/public/robots.txt b/public/robots.txt index 77470cb..14267e9 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: / \ No newline at end of file +Allow: / \ No newline at end of file diff --git a/src/components/CardEditorial.astro b/src/components/CardEditorial.astro index c7de378..1f2afd2 100644 --- a/src/components/CardEditorial.astro +++ b/src/components/CardEditorial.astro @@ -6,7 +6,7 @@ const { item, routeName } = Astro.props;

- {item.data.title}

diff --git a/src/pages/en/tags/[tag].astro b/src/pages/en/tags/[tag].astro deleted file mode 100644 index f50c609..0000000 --- a/src/pages/en/tags/[tag].astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import Page from "../../tags/[tag].astro" - -export { getStaticPaths } from "../../tags/[tag].astro" - -const { props } = Astro ---- - - \ No newline at end of file diff --git a/src/pages/en/tags/index.astro b/src/pages/en/tags/index.astro deleted file mode 100644 index 1ff13a8..0000000 --- a/src/pages/en/tags/index.astro +++ /dev/null @@ -1,7 +0,0 @@ ---- -import Page from "../../tags/index.astro" - -const { props } = Astro ---- - - \ No newline at end of file diff --git a/src/pages/i18n/fr.json b/src/pages/i18n/fr.json index b19485d..feac42d 100644 --- a/src/pages/i18n/fr.json +++ b/src/pages/i18n/fr.json @@ -1,5 +1,5 @@ { - "title": "Création de sites web sobres et accessibles", + "title": "Création de sites web sobres et accessibles", "subtitle": "Apprenez-en plus sur…", "quoi": "Je crée des sites et des applications web en suivant les bonnes pratiques d’accessibilités.", "comment": "Plus précisément, je crée des interfaces web et mobiles. De l’ergonomie jusqu’au design final, de l’intégration jusqu’à la mise en ligne. Je mets en avant les standards d’accessibilité numérique, pour lesquels j’ai obtenu la certification Opquast. Je m’inscris également dans une démarche d’éco-conception des services que je propose.",