Skip to content

Commit 0113043

Browse files
Update index.astro
Two of the three lines were actually required. And cannot be removed.
1 parent d5a2a5a commit 0113043

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pages/education-resources/index.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { getCurrentLocale, getUiTranslator } from "@i18n/utils";
88
import { categories } from "@/src/content/tutorials/config";
99
import { removeLocalePrefix } from "@i18n/utils";
1010
11+
const pages = await getCollectionInDefaultLocale("pages");
12+
const page = pages.find((page) => page.slug === 'education-resources')!
13+
1114
const currentLocale = getCurrentLocale(Astro.url.pathname);
1215
const t = await getUiTranslator(currentLocale);
1316
const pageJumpToLinks = categories.map((category) => ({

0 commit comments

Comments
 (0)