From 1ec33f27f5bff2b96c80b954b53a62951b6cd354 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Mon, 7 Aug 2023 20:05:58 +0100 Subject: Replace staticPaths -> localeStaticPaths --- src/pages/[locale]/furthsettins/index.astro | 4 ++-- src/pages/[locale]/furthsettins/lallans/[issueNumber].astro | 3 +-- src/pages/[locale]/furthsettins/lallans/index.astro | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/pages/[locale]/furthsettins/index.astro b/src/pages/[locale]/furthsettins/index.astro index 44fa92c..c42c671 100644 --- a/src/pages/[locale]/furthsettins/index.astro +++ b/src/pages/[locale]/furthsettins/index.astro @@ -1,12 +1,12 @@ --- import Layout from '../../../layouts/Layout.astro'; -import staticPaths from '../staticPaths'; +import localeStaticPaths from '../../../lib/localeStaticPaths'; import translate from '../../../i18n/translate'; import tFurthsettins from '../../../i18n/translations/pages/furthsettins'; import tSite from '../../../i18n/translations/site'; import type Locale from '../../../types/Locale'; -export async function getStaticPaths() { return staticPaths; } +export async function getStaticPaths() { return localeStaticPaths; } const locale = Astro.params.locale as Locale; const t = translate(locale); diff --git a/src/pages/[locale]/furthsettins/lallans/[issueNumber].astro b/src/pages/[locale]/furthsettins/lallans/[issueNumber].astro index baed564..c5d8088 100644 --- a/src/pages/[locale]/furthsettins/lallans/[issueNumber].astro +++ b/src/pages/[locale]/furthsettins/lallans/[issueNumber].astro @@ -1,11 +1,10 @@ --- import Layout from '../../../../layouts/Layout.astro'; -import localeStaticPaths from '../../staticPaths'; +import localeStaticPaths from '../../../../lib/localeStaticPaths'; import translate from '../../../../i18n/translate'; import tFurthsettins from '../../../../i18n/translations/pages/furthsettins'; import tSite from '../../../../i18n/translations/site'; import type Locale from '../../../../types/Locale'; -import LallansIssuesGallery from '../../../../components/LallansIssuesGallery.astro'; import { getLallansIssue } from '../../../../data/lallans'; import type LallansIssueNumber from '../../../../types/LallansIssueNumber'; diff --git a/src/pages/[locale]/furthsettins/lallans/index.astro b/src/pages/[locale]/furthsettins/lallans/index.astro index dd5b50c..c7d8970 100644 --- a/src/pages/[locale]/furthsettins/lallans/index.astro +++ b/src/pages/[locale]/furthsettins/lallans/index.astro @@ -1,13 +1,12 @@ --- import Layout from '../../../../layouts/Layout.astro'; -import staticPaths from '../../staticPaths'; +import localeStaticPaths from '../..//../../lib/localeStaticPaths'; import translate from '../../../../i18n/translate'; import tFurthsettins from '../../../../i18n/translations/pages/furthsettins'; -import tSite from '../../../../i18n/translations/site'; import type Locale from '../../../../types/Locale'; import LallansIssuesGallery from '../../../../components/LallansIssuesGallery.astro'; -export async function getStaticPaths() { return staticPaths; } +export async function getStaticPaths() { return localeStaticPaths; } const locale = Astro.params.locale as Locale; const t = translate(locale); -- cgit v1.2.3