From 798552d16fc814141ba19a8159907a4c012a41db Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Thu, 26 Mar 2026 00:26:07 +0100 Subject: [PATCH] fixed theming issues --- backend/src/main.rs | 4 ++ frontend/src/pages/admin/editor.astro | 55 +++++++++++++------------ frontend/src/pages/admin/settings.astro | 14 +++++-- frontend/src/pages/index.astro | 29 +++++++++---- frontend/src/styles/global.css | 24 +++++++++-- 5 files changed, 84 insertions(+), 42 deletions(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index d6110e2..6ad652f 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -23,6 +23,8 @@ struct AppState { struct SiteConfig { title: String, subtitle: String, + welcome_title: String, + welcome_subtitle: String, footer: String, favicon: String, theme: String, @@ -34,6 +36,8 @@ impl Default for SiteConfig { Self { title: "Narlblog".to_string(), subtitle: "A clean, modern blog".to_string(), + welcome_title: "Welcome to my blog".to_string(), + welcome_subtitle: "Thoughts on software, design, and building things with Rust and Astro.".to_string(), footer: "Built with Rust & Astro".to_string(), favicon: "/favicon.svg".to_string(), theme: "mocha".to_string(), diff --git a/frontend/src/pages/admin/editor.astro b/frontend/src/pages/admin/editor.astro index b989e2c..cf99571 100644 --- a/frontend/src/pages/admin/editor.astro +++ b/frontend/src/pages/admin/editor.astro @@ -9,33 +9,6 @@ import Layout from '../../layouts/Layout.astro'; - -