diff --git a/website/src/components/LeftSidebar/LeftSidebar.astro b/website/src/components/LeftSidebar/LeftSidebar.astro index d008c972..47f93ee9 100644 --- a/website/src/components/LeftSidebar/LeftSidebar.astro +++ b/website/src/components/LeftSidebar/LeftSidebar.astro @@ -3,117 +3,52 @@ import { SIDEBAR } from '../../config'; type Props = { - currentPage: string; + currentPage: string; }; const { currentPage } = Astro.props as Props; -const currentPageMatch = currentPage.endsWith('/') - ? currentPage.slice(1, -1) - : currentPage.slice(1); +const currentPageMatch = currentPage.endsWith('/') ? currentPage.slice(1, -1) : currentPage.slice(1); const langCode = 'en'; // getLanguageFromURL(currentPage); const sidebar = SIDEBAR[langCode]; --- - - - - diff --git a/website/src/layouts/MainLayout.astro b/website/src/layouts/MainLayout.astro index dcc61701..06af218d 100644 --- a/website/src/layouts/MainLayout.astro +++ b/website/src/layouts/MainLayout.astro @@ -42,7 +42,7 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`; -