Skip to content

Commit

Permalink
Update index.astro
Browse files Browse the repository at this point in the history
Two of the three lines were actually required. And cannot be removed.
  • Loading branch information
sebastian-meier authored Oct 9, 2024
1 parent d5a2a5a commit 0113043
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/education-resources/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { getCurrentLocale, getUiTranslator } from "@i18n/utils";
import { categories } from "@/src/content/tutorials/config";
import { removeLocalePrefix } from "@i18n/utils";
const pages = await getCollectionInDefaultLocale("pages");
const page = pages.find((page) => page.slug === 'education-resources')!
const currentLocale = getCurrentLocale(Astro.url.pathname);
const t = await getUiTranslator(currentLocale);
const pageJumpToLinks = categories.map((category) => ({
Expand Down

0 comments on commit 0113043

Please sign in to comment.