From 0981f95f16511a34eaa3ccbf089ee148c7f8d930 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 20 Dec 2022 22:26:12 +0100 Subject: [PATCH] style left sidebar --- .../components/LeftSidebar/LeftSidebar.astro | 139 +++++------------- website/src/layouts/MainLayout.astro | 2 +- 2 files changed, 38 insertions(+), 103 deletions(-) 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}`; -
+