From 29e9ed973ee3c461ba5ee48af8e54057284f4061 Mon Sep 17 00:00:00 2001 From: Reed Nelson Date: Sat, 12 Aug 2023 15:27:04 -0500 Subject: [PATCH] purge logo --- src/config/config.json | 7 +--- src/layouts/components/Logo.astro | 67 ------------------------------- 2 files changed, 1 insertion(+), 73 deletions(-) delete mode 100644 src/layouts/components/Logo.astro diff --git a/src/config/config.json b/src/config/config.json index 8802c60..649bd2f 100755 --- a/src/config/config.json +++ b/src/config/config.json @@ -4,12 +4,7 @@ "base_url": "https://reednel.com", "base_path": "/", "trailing_slash": false, - "favicon": "/assets/favicon.ico", - "logo": "/images/logo.png", - "logo_darkmode": "/images/logo-darkmode.png", - "logo_width": "150", - "logo_height": "30", - "logo_text": "rn" + "favicon": "/assets/favicon.ico" }, "settings": { diff --git a/src/layouts/components/Logo.astro b/src/layouts/components/Logo.astro deleted file mode 100644 index ab23f50..0000000 --- a/src/layouts/components/Logo.astro +++ /dev/null @@ -1,67 +0,0 @@ ---- -import config from "@/config/config.json"; -import { Image } from "@astrojs/image/components"; - -const { src, srcDarkmode }: { src?: string; srcDarkmode?: string } = - Astro.props; -const { - logo, - logo_darkmode, - logo_width, - logo_height, - logo_text, - title, -}: { - logo: string; - logo_darkmode: string; - logo_width: any; - logo_height: any; - logo_text: string; - title: string; -} = config.site; - -const { theme_switcher }: { theme_switcher: boolean } = config.settings; ---- - - - { - src || srcDarkmode || logo || logo_darkmode ? ( - <> - {title} - {theme_switcher && ( - {title} - )} - - ) : logo_text ? ( - logo_text - ) : ( - title - ) - } -