From 58cb6ba8e5667f9b2705eb1b572f14011bd91ec4 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Sun, 25 Sep 2022 21:42:06 +0630 Subject: [PATCH] Add 2 color scheme config option --- src/components/Header.astro | 28 ++++++++++++++++------------ src/config.ts | 1 + 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index b171d8b..6d8bad9 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -71,18 +71,22 @@ const { activeNav } = Astro.props; - + { + SITE.lightAndDarkMode && ( + + ) + } diff --git a/src/config.ts b/src/config.ts index ab5a4ff..65eb48d 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,6 +6,7 @@ export const SITE = { desc: "A minimal, responsive and SEO-friendly Astro blog theme.", title: "AstroPaper", ogImage: "og-default.png", + lightAndDarkMode: true, postPerPage: 3, };