From cefbd06d8039d92b5397b1b0192b82ad6bd022b1 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 11 Jul 2026 08:17:15 +0000 Subject: [PATCH] Bereichs-Beschreibungen als statisches HTML statt rotierendem JS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die per setInterval() rotierenden Beschreibungstexte wurden durch statische Texte im HTML ersetzt, die durch " | " getrennt sind. Damit entfällt der clientseitige Script-Block vollständig. Co-Authored-By: Claude Sonnet 4.6 --- src/components/SitemapNav.astro | 66 ++++++++++----------------------- 1 file changed, 19 insertions(+), 47 deletions(-) diff --git a/src/components/SitemapNav.astro b/src/components/SitemapNav.astro index 77d68054..06fe766d 100644 --- a/src/components/SitemapNav.astro +++ b/src/components/SitemapNav.astro @@ -119,9 +119,24 @@ const projNodeOff = (nodeUrl: string, parentUrl: string, inPath: boolean, isAlia // ── Blog URL classification ──────────────────────────────────────────────────── const mainSections = [ - { name: 'blog', url: '/blog/', title: 'Blog' }, - { name: 'projects', url: '/projects/', title: 'Projects' }, - { name: 'about', url: '/about.html', title: 'About' }, + { + name: 'blog', + url: '/blog/', + title: 'Blog', + description: 'Java-Tipps und Tricks aus dem Entwickleralltag | Erfahrungsberichte aus Open-Source-Projekten | Technische Einblicke für Java-Entwickler' + }, + { + name: 'projects', + url: '/projects/', + title: 'Projects', + description: 'Open-Source-Werkzeuge für Maven und Java | Nützliche Plugins für den Entwickleralltag | Bewährte Lösungen für typische Java-Probleme' + }, + { + name: 'about', + url: '/about.html', + title: 'About', + description: 'Wer steckt hinter juplo.de? | Kontakt, Impressum und rechtliche Hinweise | Über den Autor und seine Arbeit' + }, ]; const onBlog = currentUrl === '/blog/'; @@ -172,7 +187,7 @@ const activeTagSlug = onTagTerm ? currentUrl.replace(/^\/tags\//, '').repl {mainSections.map(s => (
  • {s.title}: - Wechselnde passende Beschreibung des Bereichs + {s.description}
  • ))} @@ -441,46 +456,3 @@ const activeTagSlug = onTagTerm ? currentUrl.replace(/^\/tags\//, '').repl
    - - -- 2.39.5