From b829f0e47983c4b28fc5fc49cc92f9e1bed3d3e7 Mon Sep 17 00:00:00 2001 From: Tobias Feigel Date: Mon, 22 Sep 2025 10:05:46 +0200 Subject: [PATCH] =?UTF-8?q?Config=20angepasst=20f=C3=BCr=20korrekte=20Home?= =?UTF-8?q?page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robots.txt | 21 ++++++++++++++++++--- site/config/config.php | 10 ++++++++++ site/templates/default.php | 34 +++++++++++++++++++++++++++++----- 3 files changed, 57 insertions(+), 8 deletions(-) diff --git a/robots.txt b/robots.txt index 22a08ce..c10d879 100644 --- a/robots.txt +++ b/robots.txt @@ -1,11 +1,26 @@ User-agent: * Allow: / +Crawl-delay: 1 -# Sitemap (falls vorhanden) -https://www.schachfreunde-badsteben.de/sitemap.xml +# Spezielle Erlaubnis für DSGVO/Legal Scanner +User-agent: LegalCockpitBot +Allow: / +Crawl-delay: 0 + +User-agent: cockpit.legal +Allow: / +Crawl-delay: 0 + +User-agent: Mozilla* +Allow: / + +# Sitemap +Sitemap: https://www.schachfreunde-badsteben.de/sitemap.xml # Wichtige Seiten explizit erlauben +Allow: / Allow: /datenschutz Allow: /impressum Allow: /kontakt -Allow: /home \ No newline at end of file +Allow: /home +Allow: /news diff --git a/site/config/config.php b/site/config/config.php index 95b10d4..a2f9d4f 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -2,12 +2,22 @@ return [ 'debug' => true, + + // Home-Seite explizit definieren + 'home' => 'home', + 'panel' => [ 'vue' => [ 'compiler' => false ] ], 'routes' => [ + [ + 'pattern' => '/', + 'action' => function() { + return site()->homePage(); + } + ], [ 'pattern' => 'sitemap.xml', 'action' => function() { diff --git a/site/templates/default.php b/site/templates/default.php index 0138af5..e1e46c1 100644 --- a/site/templates/default.php +++ b/site/templates/default.php @@ -1,5 +1,29 @@ - - -

Hallo Welt!

- - \ No newline at end of file +isHomePage()) { + snippet('layout', slots: true); +?> +

Herzlich Willkommen!

+ + text()->kirbytext() ?> + + page('news')->children()->limit(3)->sortBy('date', 'desc'), + ]); ?> + + + + + +

title()->esc() ?>

+ + text()->kirbytext() ?> +