From 0b84615bf94556dc0ec9d4fe2412c74753ac3441 Mon Sep 17 00:00:00 2001 From: Ruben Date: Mon, 3 Nov 2025 22:30:49 +0100 Subject: [PATCH] Add meta description support to pages Add description meta tag to base template Fix navigation list structure in header Add meta description extraction helper function Update rendering and routing to include meta description --- app/default/styles/base.css | 2 +- app/default/templates/base.php | 7 ++++-- app/helpers.php | 40 ++++++++++++++++++++++++++++++++++ app/rendering.php | 2 ++ app/router.php | 1 + 5 files changed, 49 insertions(+), 3 deletions(-) diff --git a/app/default/styles/base.css b/app/default/styles/base.css index ff51983..7f67bc8 100644 --- a/app/default/styles/base.css +++ b/app/default/styles/base.css @@ -86,7 +86,7 @@ header { margin-top: .4rem; padding: 0; justify-content: flex-end; - a { + li { margin-left:0.4rem; margin-top:0.4rem; } diff --git a/app/default/templates/base.php b/app/default/templates/base.php index d602f64..437af54 100644 --- a/app/default/templates/base.php +++ b/app/default/templates/base.php @@ -17,6 +17,9 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'], + + + @@ -36,10 +39,10 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'],