diff --git a/public/custom/site.css b/public/custom/site.css index fc95411..90bb3b1 100644 --- a/public/custom/site.css +++ b/public/custom/site.css @@ -554,4 +554,14 @@ body { transition: opacity 0.3s ease-out, transform 0.3s ease-out, filter 0.3s e } .galerie-zurueck { display: inline-block; margin-top: 34px; font-size: 14px; color: var(--text-leise); } .galerie-zurueck:hover { color: var(--text); } +.galerie-leistung { + display: inline-block; + margin: 34px 0 0 24px; + font-size: 14px; + color: var(--text); +} +.galerie-leistung:hover { opacity: 0.65; } +@media (max-width: 760px) { + .galerie-leistung { display: block; margin: 12px 0 0; } +} @media (max-width: 760px) { .galerie-spalten { columns: 1; } } diff --git a/public/portfolio-abiball.html b/public/portfolio-abiball.html index 20396a5..278e242 100644 --- a/public/portfolio-abiball.html +++ b/public/portfolio-abiball.html @@ -125,6 +125,7 @@ Abiball – Foto 7 ← Zurück zum Portfolio + Eventfotografie in Norddeutschland ansehen → diff --git a/public/portfolio-fc-st-pauli.html b/public/portfolio-fc-st-pauli.html index b047dbf..27f4fd0 100644 --- a/public/portfolio-fc-st-pauli.html +++ b/public/portfolio-fc-st-pauli.html @@ -146,6 +146,7 @@ ← Zurück zum Portfolio + Sportfotografie in Hamburg und Wolfsburg ansehen → diff --git a/public/portfolio-hamburger-sv.html b/public/portfolio-hamburger-sv.html index a4e08ee..7ed4c6d 100644 --- a/public/portfolio-hamburger-sv.html +++ b/public/portfolio-hamburger-sv.html @@ -128,6 +128,7 @@ Hamburger SV – Foto 11 ← Zurück zum Portfolio + Sportfotografie in Hamburg ansehen → diff --git a/public/portfolio-hannover-96.html b/public/portfolio-hannover-96.html index cdf7f08..fb545cb 100644 --- a/public/portfolio-hannover-96.html +++ b/public/portfolio-hannover-96.html @@ -149,6 +149,7 @@ ← Zurück zum Portfolio + Sportfotografie in Hannover ansehen → diff --git a/public/portfolio-nfv-pokalfinale-2026.html b/public/portfolio-nfv-pokalfinale-2026.html index 4685d7e..a7c57af 100644 --- a/public/portfolio-nfv-pokalfinale-2026.html +++ b/public/portfolio-nfv-pokalfinale-2026.html @@ -130,6 +130,7 @@ NFV-Pokalfinale 2026 – Foto 12 ← Zurück zum Portfolio + Sportfotografie in Niedersachsen ansehen → diff --git a/public/portfolio-omr-yes-wecancer.html b/public/portfolio-omr-yes-wecancer.html index e5e64f5..38524ad 100644 --- a/public/portfolio-omr-yes-wecancer.html +++ b/public/portfolio-omr-yes-wecancer.html @@ -123,6 +123,7 @@ OMR x yes!wecancer – Foto 5 ← Zurück zum Portfolio + Eventfotografie in Hamburg und deutschlandweit ansehen → diff --git a/public/portfolio-svg-lueneburg.html b/public/portfolio-svg-lueneburg.html index c50afdc..f99f4dd 100644 --- a/public/portfolio-svg-lueneburg.html +++ b/public/portfolio-svg-lueneburg.html @@ -136,6 +136,7 @@ SVG Lüneburg – Foto 19 ← Zurück zum Portfolio + Sportfotografie in Lüneburg ansehen → diff --git a/public/portfolio-yes-con-2026.html b/public/portfolio-yes-con-2026.html index 7fe7403..fa43c0b 100644 --- a/public/portfolio-yes-con-2026.html +++ b/public/portfolio-yes-con-2026.html @@ -130,6 +130,7 @@ ← Zurück zum Portfolio + Eventfotografie für Unternehmen ansehen → diff --git a/public/sitemap.xml b/public/sitemap.xml index fe73637..9bff3a7 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -1,26 +1,27 @@ - https://leon-tonhaeuser.de/2026-06-171.0weekly + https://leon-tonhaeuser.de/2026-07-301.0weekly https://leon-tonhaeuser.de/portfolio2026-06-170.8 https://leon-tonhaeuser.de/portfolio-aufstiegsfeier2026-06-170.7 - https://leon-tonhaeuser.de/portfolio-abiball2026-06-250.7 + https://leon-tonhaeuser.de/portfolio-abiball2026-07-300.7 https://leon-tonhaeuser.de/portfolio-frauen-bundesliga2026-06-170.7 - https://leon-tonhaeuser.de/portfolio-hamburger-sv2026-06-170.7 + https://leon-tonhaeuser.de/portfolio-hamburger-sv2026-07-300.7 https://leon-tonhaeuser.de/portfolio-rhine-ruhr-3x32026-06-170.7 https://leon-tonhaeuser.de/portfolio-rhine-ruhr-basketball2026-06-170.7 https://leon-tonhaeuser.de/portfolio-rhine-ruhr-beachvolleyball2026-06-170.7 https://leon-tonhaeuser.de/portfolio-rhine-ruhr-sport2026-06-170.7 - https://leon-tonhaeuser.de/portfolio-svg-lueneburg2026-06-170.7 - https://leon-tonhaeuser.de/portfolio-fc-st-pauli2026-06-250.7 - https://leon-tonhaeuser.de/portfolio-hannover-962026-06-250.7 + https://leon-tonhaeuser.de/portfolio-svg-lueneburg2026-07-300.7 + https://leon-tonhaeuser.de/portfolio-fc-st-pauli2026-07-300.7 + https://leon-tonhaeuser.de/portfolio-hannover-962026-07-300.7 https://leon-tonhaeuser.de/portfolio-sv-meppen2026-06-250.7 https://leon-tonhaeuser.de/portfolio-deutschland-u212026-06-250.7 - https://leon-tonhaeuser.de/portfolio-nfv-pokalfinale-20262026-06-250.7 - https://leon-tonhaeuser.de/portfolio-yes-con-20262026-06-250.7 - https://leon-tonhaeuser.de/portfolio-omr-yes-wecancer2026-06-250.7 + https://leon-tonhaeuser.de/portfolio-nfv-pokalfinale-20262026-07-300.7 + https://leon-tonhaeuser.de/portfolio-yes-con-20262026-07-300.7 + https://leon-tonhaeuser.de/portfolio-omr-yes-wecancer2026-07-300.7 https://leon-tonhaeuser.de/portfolio-beach-soccer-cup2026-06-250.7 - https://leon-tonhaeuser.de/leistungen2026-06-170.8 - https://leon-tonhaeuser.de/eventfotografie2026-06-250.8 + https://leon-tonhaeuser.de/leistungen2026-07-300.8 + https://leon-tonhaeuser.de/sportfotografie2026-07-300.8 + https://leon-tonhaeuser.de/eventfotografie2026-07-300.8 https://leon-tonhaeuser.de/über-mich2026-06-170.8 https://leon-tonhaeuser.de/kontakt2026-06-170.8 https://leon-tonhaeuser.de/datenschutz2026-06-170.2 diff --git a/scripts/check-seo.mjs b/scripts/check-seo.mjs index 73d1ba3..f52f1fe 100644 --- a/scripts/check-seo.mjs +++ b/scripts/check-seo.mjs @@ -1,6 +1,6 @@ import assert from 'node:assert/strict'; import { execFileSync } from 'node:child_process'; -import { readFileSync, readdirSync, writeFileSync } from 'node:fs'; +import { existsSync, readFileSync, readdirSync, writeFileSync } from 'node:fs'; import path from 'node:path'; import vm from 'node:vm'; import { fileURLToPath } from 'node:url'; @@ -227,6 +227,72 @@ if (wants('event')) { }); } +if (wants('links')) { + const sportPages = [ + 'portfolio-hamburger-sv.html', + 'portfolio-fc-st-pauli.html', + 'portfolio-hannover-96.html', + 'portfolio-svg-lueneburg.html', + 'portfolio-nfv-pokalfinale-2026.html' + ]; + const eventPages = [ + 'portfolio-yes-con-2026.html', + 'portfolio-omr-yes-wecancer.html', + 'portfolio-abiball.html' + ]; + + check('Sportreferenzen verlinken die Sportseite', () => { + for (const file of sportPages) { + assert.ok(pageHtml(file).includes('href="./sportfotografie"'), `${file} fehlt`); + } + }); + + check('Eventreferenzen verlinken die Eventseite', () => { + for (const file of eventPages) { + assert.ok(pageHtml(file).includes('href="./eventfotografie"'), `${file} fehlt`); + } + }); + + check('Sitemap enthält die Sportseite und aktuelle Hub-Daten', () => { + const xml = read('public/sitemap.xml'); + assert.equal(count(xml, /https:\/\/leon-tonhaeuser\.de\/sportfotografie<\/loc>/g), 1); + for (const url of ['/', '/leistungen', '/eventfotografie', '/sportfotografie']) { + const escaped = url === '/' ? '\\/' : url.replace(/\//g, '\\/'); + const entry = new RegExp(`https:\\/\\/leon-tonhaeuser\\.de${escaped}<\\/loc>2026-07-30<\\/lastmod>`); + assert.ok(entry.test(xml), `${url} hat kein lastmod 2026-07-30`); + } + }); + + check('alle konfigurierten Seiten haben genau einen statischen SEO-Block', () => { + const config = loadConfig(); + for (const [urlPath, page] of Object.entries(config.PAGES)) { + const file = urlPath === '/' ? 'index.html' : `${urlPath.slice(1)}.html`; + const html = pageHtml(file); + assert.equal(count(html, //g), 1, `${file}: Endmarker`); + assert.equal(count(html, //g), 1, `${file}: Title`); + assert.equal(count(html, /<meta name="description"/g), 1, `${file}: Description`); + assert.ok(html.includes(`<title>${htmlEscape(page.title)}`), `${file}: Title-Wert`); + } + }); + + check('alle relativen HTML-Links zeigen auf vorhandene Seiten', () => { + const files = readdirSync(PUBLIC).filter((file) => file.endsWith('.html')); + for (const file of files) { + const html = pageHtml(file); + const hrefs = Array.from( + html.matchAll(/]*\shref="(\.\/[^"#?]*)/g), + (match) => match[1] + ); + for (const href of hrefs) { + const clean = decodeURIComponent(href.slice(2)); + const target = clean === '' ? 'index.html' : clean.endsWith('.html') ? clean : `${clean}.html`; + assert.ok(existsSync(path.join(PUBLIC, target)), `${file} → ${href}`); + } + } + }); +} + if (failures.length) { console.error(`\n${failures.length} Prüfung(en) fehlgeschlagen.`); process.exit(1);