]> juplo.de Git - website/commit
BlogNav: vollständige About-Subtree mit korrekter off-Logik
authorKai Moritz <kai.milan.moritz@googlemail.com>
Sun, 14 Jun 2026 09:12:36 +0000 (09:12 +0000)
committerKai Moritz <kai.milan.moritz@googlemail.com>
Sun, 14 Jun 2026 09:12:36 +0000 (09:12 +0000)
commit11801d09c4cbfd53d60da42081365820810c24a0
treec000b1733becb7a6cbc7c58f4856d3d75b3588a9
parent83a7f519264aa93465361e381dacac55cf21b54a
BlogNav: vollständige About-Subtree mit korrekter off-Logik

Statischer About-Seitenbaum aus Hugo content/about/-Struktur:
  /about.html → /contact.html, /impressum.html (mit 5 Unterseiten), /agb.html

aboutPageOff() implementiert Hugo tree.html-Logik:
  sichtbar wenn isCurrent || isAncestor || isSibling(nicht section-index) || isChild

Korrekturen gegenüber Vorgängerversion:
- onAboutSection (inSubtree) statt onAbout (nur /about.html)
  → activeSection 'about' auch auf Impressum/Datenschutz
  → blogSectionOff = onAboutSection (Blog versteckt auf allen About-Seiten)
- About-Link zeigt selected auf allen About-Section-Seiten
- About-li hat jetzt class 'sub' (hat Kinder)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
src/components/BlogNav.astro