From 4a3bae1ba8052e3fd50e6349e3bb816817795f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Wed, 10 Jun 2026 17:57:25 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Men=C3=BCpunkt=20Leistungen=20in=20Navi?= =?UTF-8?q?gation=20und=20Footer=20aller=20Seiten=20einf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- public/404.html | 2 +- public/blog.html | 2 +- ...uli-gladbach-sportfotografie-im-regen.html | 2 +- public/custom/nav.js | 73 +++++++++++++++++++ public/datenschutz.html | 2 +- public/impressum.html | 2 +- public/index.html | 2 +- public/kontakt.html | 2 +- public/portfolio.html | 2 +- public/portfolio/frauen-bundesliga.html | 2 +- public/portfolio/hamburger-sv.html | 2 +- public/portfolio/hsv-bundesliga.html | 2 +- public/portfolio/svg-luenburg.html | 2 +- public/über-mich.html | 2 +- 14 files changed, 86 insertions(+), 13 deletions(-) create mode 100644 public/custom/nav.js diff --git a/public/404.html b/public/404.html index b39f5a7..a9d3508 100644 --- a/public/404.html +++ b/public/404.html @@ -343,4 +343,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/blog.html b/public/blog.html index a33b55a..bac6500 100644 --- a/public/blog.html +++ b/public/blog.html @@ -346,4 +346,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/blog/bundesliga-stpauli-gladbach-sportfotografie-im-regen.html b/public/blog/bundesliga-stpauli-gladbach-sportfotografie-im-regen.html index 1a2a5c9..d83edcb 100644 --- a/public/blog/bundesliga-stpauli-gladbach-sportfotografie-im-regen.html +++ b/public/blog/bundesliga-stpauli-gladbach-sportfotografie-im-regen.html @@ -343,4 +343,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/custom/nav.js b/public/custom/nav.js new file mode 100644 index 0000000..a357ba2 --- /dev/null +++ b/public/custom/nav.js @@ -0,0 +1,73 @@ +// Fügt den Menüpunkt "Leistungen" in Navigation und Footer der Framer-Export-Seiten ein. +// +// Hintergrund: Die Framer-Laufzeit baut die Navigation aus ihren eigenen Daten +// neu auf – direkt ins HTML geschriebene Menüpunkte würden dabei verschwinden. +// Deshalb klont dieses Skript den vorhandenen "Über mich"-Eintrag (erbt damit +// exakt dessen Styling), ersetzt Text und Ziel, und setzt den Eintrag nach +// jedem Neuaufbau der Navigation wieder ein. +(function () { + 'use strict'; + + var LABEL = 'Leistungen'; + var MARKER = 'data-custom-leistungen'; + + function einfuegen() { + // Alle "Über mich"-Links finden (Desktop-Nav, Mobile-Menü und Footer; + // auf Unterseiten lautet das Ziel "../über-mich" statt "./über-mich") + var vorlagen = document.querySelectorAll('a[href$="ber-mich"]'); + + for (var i = 0; i < vorlagen.length; i++) { + var link = vorlagen[i]; + + // Nur echte Menü-/Footer-Einträge klonen, keine Buttons im Seiteninhalt + if (link.textContent.trim() !== 'Über mich') continue; + + // Der klickbare Menüpunkt ist der nächste Container um den Link + // (Framer:

-

Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/impressum.html b/public/impressum.html index 4885f42..020660d 100644 --- a/public/impressum.html +++ b/public/impressum.html @@ -343,4 +343,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/index.html b/public/index.html index 2e53edb..b7e6573 100644 --- a/public/index.html +++ b/public/index.html @@ -348,4 +348,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/kontakt.html b/public/kontakt.html index 0c17956..8286f5f 100644 --- a/public/kontakt.html +++ b/public/kontakt.html @@ -343,4 +343,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/portfolio.html b/public/portfolio.html index 9f04350..95ba090 100644 --- a/public/portfolio.html +++ b/public/portfolio.html @@ -346,4 +346,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/portfolio/frauen-bundesliga.html b/public/portfolio/frauen-bundesliga.html index 91c6213..2aa1dcb 100644 --- a/public/portfolio/frauen-bundesliga.html +++ b/public/portfolio/frauen-bundesliga.html @@ -345,4 +345,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/portfolio/hamburger-sv.html b/public/portfolio/hamburger-sv.html index b38f95b..66b3bbd 100644 --- a/public/portfolio/hamburger-sv.html +++ b/public/portfolio/hamburger-sv.html @@ -345,4 +345,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/portfolio/hsv-bundesliga.html b/public/portfolio/hsv-bundesliga.html index ea97a75..bd91b24 100644 --- a/public/portfolio/hsv-bundesliga.html +++ b/public/portfolio/hsv-bundesliga.html @@ -345,4 +345,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/portfolio/svg-luenburg.html b/public/portfolio/svg-luenburg.html index c900533..f904559 100644 --- a/public/portfolio/svg-luenburg.html +++ b/public/portfolio/svg-luenburg.html @@ -345,4 +345,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file diff --git a/public/über-mich.html b/public/über-mich.html index 836213c..7c85773 100644 --- a/public/über-mich.html +++ b/public/über-mich.html @@ -349,4 +349,4 @@ -
Edit Content
\ No newline at end of file +
Edit Content
\ No newline at end of file