diff --git a/src/components/PageHeader/RootPage.astro b/src/components/PageHeader/RootPage.astro index 16c61136e4..cd16866487 100644 --- a/src/components/PageHeader/RootPage.astro +++ b/src/components/PageHeader/RootPage.astro @@ -6,13 +6,13 @@ const { title, subtitle } = Astro.props; // to the header only when the filter by keyword is not present. const routesWithFilter = ["/reference"]; const isFilterRoute = routesWithFilter.some((route) => - Astro.url.pathname.includes(route) + Astro.url.pathname.includes(route), ); const borderStyle = isFilterRoute ? "" : "border-b border-sidebar-type-color"; ---

{title}

{subtitle}

diff --git a/src/layouts/TutorialsLayout.astro b/src/layouts/TutorialsLayout.astro index 8a44ec3e5f..a2d1a2bf2d 100644 --- a/src/layouts/TutorialsLayout.astro +++ b/src/layouts/TutorialsLayout.astro @@ -21,7 +21,7 @@ const sections = categories.map((slug) => { .filter((e: TutorialEntry) => e.data.category === slug) .sort( (a: TutorialEntry, b: TutorialEntry) => - (a.data.categoryIndex ?? 1000) - (b.data.categoryIndex ?? 1000) + (a.data.categoryIndex ?? 1000) - (b.data.categoryIndex ?? 1000), ); return { slug, name, sectionEntries }; @@ -55,7 +55,7 @@ setJumpToState({