From a558bf3afb29600cf13f32a2213cdf834a23e1ab Mon Sep 17 00:00:00 2001 From: Ruben Date: Tue, 4 Nov 2025 23:01:36 +0100 Subject: [PATCH] Update title and add social media metadata Add Open Graph and Twitter Card metadata for better social sharing Implement dynamic title formatting with site title suffix Add support for social sharing images with fallback to hero image Include default description for better SEO Ensure proper URL handling for both HTTP and HTTPS --- content/metadata.ini | 2 +- custom/templates/base.php | 53 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 50 insertions(+), 5 deletions(-) diff --git a/content/metadata.ini b/content/metadata.ini index d90796c..528f077 100644 --- a/content/metadata.ini +++ b/content/metadata.ini @@ -1,4 +1,4 @@ -title = "Stopp lidelsen" +title = "Stopp lidelsen | Pasientene som faller mellom alle stoler" slug = "Forsiden" [en] diff --git a/custom/templates/base.php b/custom/templates/base.php index 5cf6072..40be390 100644 --- a/custom/templates/base.php +++ b/custom/templates/base.php @@ -17,10 +17,56 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'], - - - + + + + <?= $fullTitle ?> + + + + + + + + + + + + + + + + + + + + + + + + @@ -28,7 +74,6 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'], - <?= htmlspecialchars($pageTitle ?? 'Stopp lidelsen') ?>