refactor: hide content provenance in public UI
Deploy / validate-dispatch (push) Successful in 1s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 3s
Deploy / app-quality (push) Successful in 1m3s
Deploy / secret-scan (push) Successful in 4s
Deploy / security-deps (push) Successful in 5s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 52s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 12s

This commit is contained in:
Per Hoener
2026-09-19 15:46:46 +02:00
parent 889b70bd55
commit ce08f94d48
8 changed files with 9 additions and 18 deletions
+2 -4
View File
@@ -11,7 +11,6 @@ import coatOfArms from "../../../goldebek_website_briefing/DEU_Goldebek_wappen.s
import doerpshuusImage from "../../../goldebek_website_briefing/csm_goldebek_1_0714260009.jpg";
import placeImage from "../../../goldebek_website_briefing/csm_nordfriesland_goldebek_mr_240320_388_2bb06f3278.jpg";
import PageHeader from "@/components/PageHeader";
import SourceNote from "@/components/SourceNote";
import { getSource } from "@/lib/content";
import { formatGermanDate } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
@@ -48,7 +47,7 @@ function SpecialContent({ type }: { type?: string }) {
return <figure className="coat-of-arms"><Image src={coatOfArms} alt="Offizielles Wappen der Gemeinde Goldebek" /><figcaption>Das Gemeindewappen wird unverändert wiedergegeben.</figcaption></figure>;
}
if (type === "facts") {
return <dl className="data-grid"><div><dt>Einwohner</dt><dd>{municipalityJson.population.value}</dd><small>Stand 31.03.2026</small></div><div><dt>Fläche</dt><dd>{municipalityJson.areaKm2.toLocaleString("de-DE")} km²</dd></div><div><dt>Dichte</dt><dd>{municipalityJson.population.densityPerKm2} Einwohner/km²</dd></div><div><dt>Postleitzahl</dt><dd>{municipalityJson.postalCode}</dd></div><div><dt>Gemeindeschlüssel</dt><dd>{municipalityJson.officialMunicipalityKey}</dd></div><div><dt>Amt</dt><dd>{municipalityJson.administration}</dd></div></dl>;
return <dl className="data-grid"><div><dt>Einwohner</dt><dd>{municipalityJson.population.value}</dd></div><div><dt>Fläche</dt><dd>{municipalityJson.areaKm2.toLocaleString("de-DE")} km²</dd></div><div><dt>Dichte</dt><dd>{municipalityJson.population.densityPerKm2} Einwohner/km²</dd></div><div><dt>Postleitzahl</dt><dd>{municipalityJson.postalCode}</dd></div><div><dt>Gemeindeschlüssel</dt><dd>{municipalityJson.officialMunicipalityKey}</dd></div><div><dt>Amt</dt><dd>{municipalityJson.administration}</dd></div></dl>;
}
if (type === "history") {
return <ol className="timeline">{municipalityJson.history.map((item) => <li key={`${item.date}-${item.title}`}><time>{item.date}</time><div><h3>{item.title}</h3><p>{item.text}</p></div></li>)}</ol>;
@@ -92,6 +91,5 @@ export default async function ContentPageRoute({ params }: { params: Promise<{ s
const page = pages.find((item) => item.slug === slug);
if (!page) notFound();
const parent = page.slug.includes("/") ? pages.find((item) => item.slug === page.slug.split("/")[0]) : undefined;
const source = page.sourceId ? getSource(page.sourceId) : undefined;
return <><PageHeader eyebrow={page.eyebrow} title={page.title} intro={page.intro} breadcrumbs={[...(parent ? [{ label: parent.title, href: `/${parent.slug}` }] : []), { label: page.title }]} /><div className="container page-content"><SpecialContent type={page.special} />{page.sections.map((section) => <section className="content-section" key={section.title}><h2>{section.title}</h2>{section.text?.map((paragraph) => <p key={paragraph}>{paragraph}</p>)}{section.items ? <ul>{section.items.map((item) => <li key={item}>{item}</li>)}</ul> : null}{section.links ? <div className="link-list">{section.links.map((link) => <ExternalAwareLink key={link.href} link={link} />)}</div> : null}</section>)}{page.lastVerified ? <SourceNote lastVerified={page.lastVerified} sourceName={source?.name} sourceUrl={source?.url} /> : null}</div></>;
return <><PageHeader eyebrow={page.eyebrow} title={page.title} intro={page.intro} breadcrumbs={[...(parent ? [{ label: parent.title, href: `/${parent.slug}` }] : []), { label: page.title }]} /><div className="container page-content"><SpecialContent type={page.special} />{page.sections.map((section) => <section className="content-section" key={section.title}><h2>{section.title}</h2>{section.text?.map((paragraph) => <p key={paragraph}>{paragraph}</p>)}{section.items ? <ul>{section.items.map((item) => <li key={item}>{item}</li>)}</ul> : null}{section.links ? <div className="link-list">{section.links.map((link) => <ExternalAwareLink key={link.href} link={link} />)}</div> : null}</section>)}</div></>;
}
+1 -2
View File
@@ -1,11 +1,10 @@
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import PageHeader from "@/components/PageHeader";
import SourceNote from "@/components/SourceNote";
import { getNews, getNewsItem } from "@/lib/content";
import { formatShortDate } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
export function generateStaticParams() { return getNews().map((item) => ({ slug:item.slug })); }
export async function generateMetadata({ params }: { params:Promise<{slug:string}> }):Promise<Metadata> { const item=getNewsItem((await params).slug); return item ? { ...createPageMetadata({title:item.title,description:item.teaser,path:`/aktuelles/${item.slug}`,type:"article"}), openGraph:{title:item.title,description:item.teaser,type:"article",url:`/aktuelles/${item.slug}`,publishedTime:item.publishedAt,modifiedTime:item.updatedAt,images:[]},twitter:{title:item.title,description:item.teaser,images:[]} } : {}; }
export default async function NewsDetail({ params }: { params:Promise<{slug:string}> }) { const item=getNewsItem((await params).slug); if(!item) notFound(); return <><PageHeader eyebrow={`Meldung vom ${formatShortDate(item.publishedAt)}`} title={item.title} intro={item.teaser} breadcrumbs={[{label:"Aktuelles",href:"/aktuelles"},{label:item.title}]} /><article className="container narrow-content prose"><p>{item.body}</p><SourceNote lastVerified={item.lastVerified} sourceName={item.sourceName} sourceUrl={item.sourceUrl} /></article></>; }
export default async function NewsDetail({ params }: { params:Promise<{slug:string}> }) { const item=getNewsItem((await params).slug); if(!item) notFound(); return <><PageHeader eyebrow={`Meldung vom ${formatShortDate(item.publishedAt)}`} title={item.title} intro={item.teaser} breadcrumbs={[{label:"Aktuelles",href:"/aktuelles"},{label:item.title}]} /><article className="container narrow-content prose"><p>{item.body}</p></article></>; }
+2 -2
View File
@@ -13,7 +13,7 @@ import { SITE_NAME, SITE_URL } from "@/lib/site";
const homeMetadata=createPageMetadata({title:"Moin in Goldebek",description:"Offizielle Website der Gemeinde Goldebek mit aktuellen Informationen, Terminen und Anlaufstellen.",path:"/"});
export const metadata:Metadata={...homeMetadata,title:{absolute:SITE_NAME}};
const facts=[["381","Einwohner · Stand 31.03.2026"],["10,18 km²","Gemeindefläche"],["Nordfriesland","Kreis"],["25862","Postleitzahl"]] as const;
const facts=[["381","Einwohner"],["10,18 km²","Gemeindefläche"],["Nordfriesland","Kreis"],["25862","Postleitzahl"]] as const;
const quickLinks=[["Dörpshuus","/leben/doerpshuus","Raum für Feste und Begegnung"],["Gemeindevertretung","/politik/gemeindevertretung","Menschen und kommunale Arbeit"],["Alltagshilfe","/leben/alltagshilfe-osterdoerfer","Praktische Unterstützung vor Ort"],["Fahrbücherei","/service/fahrbuecherei","Haltezeiten und Termine"]] as const;
export default function HomePage(){const news=getNews().slice(0,3);const {upcoming}=partitionEvents(getEvents());return <>
@@ -25,6 +25,6 @@ export default function HomePage(){const news=getNews().slice(0,3);const {upcomi
<section className="container home-section"><p className="section-kicker">Direkt gefunden</p><h2>Schnellzugriffe</h2><div className="quick-grid quick-grid--four">{quickLinks.map(([title,href,copy],index)=><Link href={href} className="quick-card" key={title}><span className="quick-card__number" aria-hidden="true">0{index+1}</span><h3>{title}</h3><p>{copy}</p></Link>)}</div></section>
<section className="discover-section"><div className="discover-photo"><Image src={villageImage} alt="Luftaufnahme von Goldebek mit Feldern und Wohnhäusern" fill sizes="(max-width: 800px) 100vw, 50vw" /></div><div className="discover-copy"><p className="section-kicker">Ort mit Geschichte</p><h2>Goldebek entdecken</h2><p>Vom Mühlenstrom bis zur Dorfchronik: Lernen Sie Geschichte, Landschaft und Zeichen des Ortes kennen.</p><div className="link-list"><Link href="/gemeinde/geschichte">Geschichte</Link><Link href="/gemeinde/ueber-goldebek">Mühlenstrom</Link><Link href="/gemeinde/dorfchronik">Dorfchronik</Link><Link href="/gemeinde/wappen">Wappen</Link></div></div></section>
<section className="container home-section"><div className="section-heading"><div><p className="section-kicker">Engagiert vor Ort</p><h2>Gemeinschaft</h2></div></div><div className="feature-grid"><Link href="/leben/vereine"><span>01</span><h3>Vereine</h3><p>Sport, Tradition und soziales Engagement.</p></Link><Link href="/leben/freiwillige-feuerwehr"><span>02</span><h3>Feuerwehr</h3><p>Einsatzbereitschaft und Gemeinschaft.</p></Link><Link href="/leben/kulturausschuss"><span>03</span><h3>Kulturausschuss</h3><p>Feste, Aktionen und Kultur im Dorf.</p></Link></div></section>
<section className="home-section home-section--blue"><div className="container"><p className="section-kicker">Blick nach vorn</p><h2>Projekte & Entwicklung</h2><div className="project-links"><Link href="/leben/spielplatz"><strong>Spielplatz</strong><span>Seit August 2026 geöffnet</span></Link><Link href="/politik/projekte-entwicklung"><strong>Wärmeplanung</strong><span>Aktuelle Informationen und Quellen</span></Link><Link href="/politik/bauleitplanung"><strong>Bauleitplanung</strong><span>Zu den amtlichen Verfahren</span></Link></div></div></section>
<section className="home-section home-section--blue"><div className="container"><p className="section-kicker">Blick nach vorn</p><h2>Projekte & Entwicklung</h2><div className="project-links"><Link href="/leben/spielplatz"><strong>Spielplatz</strong><span>Seit August 2026 geöffnet</span></Link><Link href="/politik/projekte-entwicklung"><strong>Wärmeplanung</strong><span>Aktuelle Informationen</span></Link><Link href="/politik/bauleitplanung"><strong>Bauleitplanung</strong><span>Zu den amtlichen Verfahren</span></Link></div></div></section>
<section className="container home-section contact-band"><div><p className="section-kicker">Gemeinde & Amt</p><h2>Wir helfen Ihnen weiter.</h2><p>Für Gemeindeangelegenheiten finden Sie hier Peter Jessen und das Amt Mittleres Nordfriesland.</p></div><Link className="button button--primary" href="/kontakt">Kontakt aufnehmen</Link></section>
</>}
+1 -2
View File
@@ -3,7 +3,6 @@ import Link from "next/link";
import { notFound } from "next/navigation";
import JsonLd from "@/components/JsonLd";
import PageHeader from "@/components/PageHeader";
import SourceNote from "@/components/SourceNote";
import { getEvent, getEvents } from "@/lib/content";
import { eventDateTimeIso, formatGermanDate } from "@/lib/dates/events";
import { createPageMetadata } from "@/lib/metadata";
@@ -16,5 +15,5 @@ export default async function EventDetailPage({ params }: { params: Promise<{ sl
const visibleLocation = event.location && event.privacyApproved === true ? event.location : undefined;
const startDate = eventDateTimeIso(event.startDate, event.startTime);
const endDate = event.endDate || event.endTime ? eventDateTimeIso(event.endDate ?? event.startDate, event.endTime) : undefined;
return <><JsonLd data={{ "@context":"https://schema.org", "@type":"Event", name:event.title, description:event.summary, startDate, endDate, eventStatus:"https://schema.org/EventScheduled", location:visibleLocation ? { "@type":"Place", name:visibleLocation } : undefined, organizer:event.organizer ? { "@type":"Organization", name:event.organizer } : undefined }} /><PageHeader eyebrow="Termin" title={event.title} intro={event.summary ?? "Ein Termin der Gemeinde und Dorfgemeinschaft Goldebek."} breadcrumbs={[{ label:"Termine", href:"/termine" },{ label:event.title }]} /><div className="container narrow-content"><dl className="detail-list"><div><dt>Datum</dt><dd>{formatGermanDate(event.startDate)}</dd></div>{event.startTime ? <div><dt>Zeit</dt><dd>{event.startTime}{event.endTime ? `–${event.endTime}` : ""} Uhr</dd></div> : null}{visibleLocation ? <div><dt>Ort</dt><dd>{visibleLocation}</dd></div> : null}{event.organizer ? <div><dt>Veranstalter</dt><dd>{event.organizer}</dd></div> : null}</dl><div className="button-row"><a className="button button--primary" href={`/termine/${event.slug}/kalender.ics`}>Termin speichern (.ics)</a><Link className="button button--secondary" href="/termine">Alle Termine</Link></div><SourceNote lastVerified={event.lastVerified} sourceName={event.sourceName} sourceUrl={event.sourceUrl} /></div></>;
return <><JsonLd data={{ "@context":"https://schema.org", "@type":"Event", name:event.title, description:event.summary, startDate, endDate, eventStatus:"https://schema.org/EventScheduled", location:visibleLocation ? { "@type":"Place", name:visibleLocation } : undefined, organizer:event.organizer ? { "@type":"Organization", name:event.organizer } : undefined }} /><PageHeader eyebrow="Termin" title={event.title} intro={event.summary ?? "Ein Termin der Gemeinde und Dorfgemeinschaft Goldebek."} breadcrumbs={[{ label:"Termine", href:"/termine" },{ label:event.title }]} /><div className="container narrow-content"><dl className="detail-list"><div><dt>Datum</dt><dd>{formatGermanDate(event.startDate)}</dd></div>{event.startTime ? <div><dt>Zeit</dt><dd>{event.startTime}{event.endTime ? `–${event.endTime}` : ""} Uhr</dd></div> : null}{visibleLocation ? <div><dt>Ort</dt><dd>{visibleLocation}</dd></div> : null}{event.organizer ? <div><dt>Veranstalter</dt><dd>{event.organizer}</dd></div> : null}</dl><div className="button-row"><a className="button button--primary" href={`/termine/${event.slug}/kalender.ics`}>Termin speichern (.ics)</a><Link className="button button--secondary" href="/termine">Alle Termine</Link></div></div></>;
}