feat: GEO-Optimierung – llms.txt, FAQ-Schema, Öffnungszeiten und Profile im LocalBusiness-Schema
- /llms.txt mit Eckdaten, Leistungen und Preisen für KI-Assistenten - FAQPage-JSON-LD auf den Leistungsseiten - LocalBusiness: openingHoursSpecification und sameAs aus Supabase, logo - Bild-URL im Schema korrigiert (/og statt nicht vorhandenem /opengraph-image) - VPN-Pakete nach lib/pakete.ts ausgelagert (gemeinsame Quelle) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0775965e1e
commit
0d13e86a22
|
|
@ -3,7 +3,7 @@ import Link from "next/link";
|
||||||
import { notFound } from "next/navigation";
|
import { notFound } from "next/navigation";
|
||||||
import { CheckList, PageHead, PageShell, Sub } from "@/components/page/Blocks";
|
import { CheckList, PageHead, PageShell, Sub } from "@/components/page/Blocks";
|
||||||
import JsonLd from "@/components/JsonLd";
|
import JsonLd from "@/components/JsonLd";
|
||||||
import { OG_COMMON, breadcrumbSchema, serviceSchema } from "@/lib/seo";
|
import { OG_COMMON, breadcrumbSchema, serviceSchema, faqSchema } from "@/lib/seo";
|
||||||
import { PHONE_DISPLAY, PHONE_E164 } from "@/lib/site";
|
import { PHONE_DISPLAY, PHONE_E164 } from "@/lib/site";
|
||||||
import { leistungBySlug, leistungen } from "@/lib/leistungen";
|
import { leistungBySlug, leistungen } from "@/lib/leistungen";
|
||||||
|
|
||||||
|
|
@ -45,6 +45,7 @@ export default async function LeistungPage({ params }: { params: Promise<{ slug:
|
||||||
])}
|
])}
|
||||||
/>
|
/>
|
||||||
<JsonLd data={serviceSchema({ name: l.h1, description: l.metaDescription, path })} />
|
<JsonLd data={serviceSchema({ name: l.h1, description: l.metaDescription, path })} />
|
||||||
|
{l.faq.length > 0 && <JsonLd data={faqSchema(l.faq)} />}
|
||||||
<PageHead
|
<PageHead
|
||||||
crumbs={[{ label: "Services", href: "/services" }, { label: l.name }]}
|
crumbs={[{ label: "Services", href: "/services" }, { label: l.name }]}
|
||||||
title={l.h1}
|
title={l.h1}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
// /llms.txt – Kurzüberblick für KI-Assistenten (ChatGPT, Perplexity, Claude, Gemini).
|
||||||
|
// Format nach https://llmstxt.org. Nur Fakten, die auch auf der Webseite stehen.
|
||||||
|
import { EINSATZGEBIET, leistungen } from "@/lib/leistungen";
|
||||||
|
import { vpnPackages } from "@/lib/pakete";
|
||||||
|
import { EMAIL, PHONE_DISPLAY, SITE_NAME, SITE_URL } from "@/lib/site";
|
||||||
|
|
||||||
|
export const dynamic = "force-static";
|
||||||
|
|
||||||
|
const url = (path: string) => `${SITE_URL}${path}`;
|
||||||
|
|
||||||
|
function buildLlmsTxt() {
|
||||||
|
const vpn = vpnPackages
|
||||||
|
.map(
|
||||||
|
(p) =>
|
||||||
|
`- ${p.name}: ${p.price} €/Monat zzgl. MwSt., Einrichtung ${p.setup} € einmalig; ${p.users}, ${p.devices}. Enthalten: ${p.includes.join(", ")}.`,
|
||||||
|
)
|
||||||
|
.join("\n");
|
||||||
|
|
||||||
|
const leistungsSeiten = leistungen
|
||||||
|
.map((l) => `- [${l.name}](${url(`/leistungen/${l.slug}`)}): ${l.metaDescription}`)
|
||||||
|
.join("\n");
|
||||||
|
|
||||||
|
return `# ${SITE_NAME}
|
||||||
|
|
||||||
|
> ${SITE_NAME} ist ein IT-Dienstleister aus Crailsheim (Baden-Württemberg) für Privat- und Geschäftskunden. Schwerpunkte: WLAN und Netzwerk, PC-Support, Datensicherung, Zero-Trust-VPN (Netbird), Nextcloud und Paperless-ngx, Familienschutz im Heimnetz, Server und Webseiten. Persönliche Betreuung vor Ort und per Fernwartung.
|
||||||
|
|
||||||
|
## Eckdaten
|
||||||
|
|
||||||
|
- Inhaber: Markus Butz
|
||||||
|
- Adresse: Mörikestr. 2, 74564 Crailsheim, Deutschland
|
||||||
|
- Telefon: ${PHONE_DISPLAY}
|
||||||
|
- E-Mail: ${EMAIL}
|
||||||
|
- Einsatzgebiet: ${EINSATZGEBIET.join(", ")} und Landkreis Schwäbisch Hall (Umkreis etwa 100 km)
|
||||||
|
- Zielgruppen: Privatkunden, Familien und Geschäftskunden
|
||||||
|
- Kostenlose Erstberatung vor Ort
|
||||||
|
- Technik: Linux, Docker, Proxmox, Hetzner Cloud (Server in Deutschland), Netbird/WireGuard, Nextcloud, Paperless-ngx
|
||||||
|
- Sprache: Deutsch
|
||||||
|
|
||||||
|
## Leistungen
|
||||||
|
|
||||||
|
- [Alle Services](${url("/services")}): Übersicht aller IT-Leistungen
|
||||||
|
- [Für Privatkunden](${url("/privatkunden")}): MBO FamilyGuard Familienschutz und eine eigene Nextcloud, eingerichtet, betrieben und gewartet
|
||||||
|
- [Für Geschäftskunden](${url("/geschaeftskunden")}): Zero-Trust-VPN für sicheren Fernzugriff und ein rechtssicheres Dokumentenarchiv mit Nextcloud + Paperless-ngx
|
||||||
|
${leistungsSeiten}
|
||||||
|
- [Dokumentenarchiv mit Paperless-ngx](${url("/paperless")}): Digitale Dokumentenverwaltung, DSGVO-konform und GoBD-tauglich, selbst gehostet, mit Einrichtung und Schulung
|
||||||
|
- [Datensouveränität](${url("/datensouveraenitaet")}): Warum der Serverstandort allein nicht schützt (US Cloud Act vs. DSGVO); europäische Cloud, Self-Hosting und Nextcloud als Lösung
|
||||||
|
|
||||||
|
## Pakete und Preise
|
||||||
|
|
||||||
|
Alle Preise zzgl. gesetzlicher MwSt.; individuelle Angebote auf Anfrage. Übersicht: [Pakete & Preise](${url("/pakete")})
|
||||||
|
|
||||||
|
### [Zero-Trust-VPN (Netbird)](${url("/pakete/vpn")})
|
||||||
|
|
||||||
|
Managed VPN mit WireGuard für Unternehmen, DSGVO-konform, Server in Deutschland.
|
||||||
|
|
||||||
|
${vpn}
|
||||||
|
|
||||||
|
### [MBO FamilyGuard Familienschutz](${url("/pakete/familyguard")})
|
||||||
|
|
||||||
|
Jugendschutzfilter, Werbe- und Tracker-Blocker, Zeitpläne und Schutz vor Betrug für jedes Gerät im WLAN, inklusive Einrichtung.
|
||||||
|
|
||||||
|
- Einmalig 149,99 € (statt 199,99 €)
|
||||||
|
- Optional MBO FamilyGuard Report: 4,99 €/Monat oder 49,99 €/Jahr
|
||||||
|
|
||||||
|
### [Nextcloud + Paperless-ngx](${url("/pakete/nextcloud")})
|
||||||
|
|
||||||
|
Eigene Cloud und Dokumentenarchiv auf Docker oder Proxmox: Installation, Hosting und optionaler Wartungsvertrag. Pakete Starter, Professional und Enterprise; Preis nach Beratungsgespräch. Die Serverkosten bei Hetzner zahlt der Kunde direkt.
|
||||||
|
|
||||||
|
## Kontakt
|
||||||
|
|
||||||
|
- [Kontaktformular](${url("/#contact")})
|
||||||
|
- Telefon: ${PHONE_DISPLAY}
|
||||||
|
- E-Mail: ${EMAIL}
|
||||||
|
|
||||||
|
## Optional
|
||||||
|
|
||||||
|
- [Impressum](${url("/impressum")})
|
||||||
|
- [Datenschutz](${url("/datenschutz")})
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function GET() {
|
||||||
|
return new Response(buildLlmsTxt(), {
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "text/plain; charset=utf-8",
|
||||||
|
"Cache-Control": "public, max-age=3600",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
13
app/page.tsx
13
app/page.tsx
|
|
@ -30,7 +30,8 @@ export default async function Home() {
|
||||||
stats: { wert: string; label: string }[] = [],
|
stats: { wert: string; label: string }[] = [],
|
||||||
galerie: { id: string; storage_path: string; alt_text: string }[] = [],
|
galerie: { id: string; storage_path: string; alt_text: string }[] = [],
|
||||||
kontakt = null,
|
kontakt = null,
|
||||||
oeffnung: { tag: string; von: string; bis: string }[] = [];
|
oeffnung: { tag: string; von: string; bis: string }[] = [],
|
||||||
|
social: { url: string }[] = [];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const db = createServiceClient();
|
const db = createServiceClient();
|
||||||
|
|
@ -42,6 +43,7 @@ export default async function Home() {
|
||||||
galerieResult,
|
galerieResult,
|
||||||
kontaktResult,
|
kontaktResult,
|
||||||
oeffnungResult,
|
oeffnungResult,
|
||||||
|
socialResult,
|
||||||
] = await Promise.allSettled([
|
] = await Promise.allSettled([
|
||||||
db.from("hero_content").select("*").limit(1).single(),
|
db.from("hero_content").select("*").limit(1).single(),
|
||||||
db.from("hero_badges").select("*").order("reihenfolge"),
|
db.from("hero_badges").select("*").order("reihenfolge"),
|
||||||
|
|
@ -50,6 +52,7 @@ export default async function Home() {
|
||||||
db.from("galerie_bilder").select("*").order("reihenfolge"),
|
db.from("galerie_bilder").select("*").order("reihenfolge"),
|
||||||
db.from("kontakt_info").select("*").limit(1).single(),
|
db.from("kontakt_info").select("*").limit(1).single(),
|
||||||
db.from("kontakt_oeffnungszeiten").select("*").order("reihenfolge"),
|
db.from("kontakt_oeffnungszeiten").select("*").order("reihenfolge"),
|
||||||
|
db.from("kontakt_social").select("url").order("reihenfolge"),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
hero = heroResult.status === "fulfilled" ? heroResult.value.data : null;
|
hero = heroResult.status === "fulfilled" ? heroResult.value.data : null;
|
||||||
|
|
@ -59,6 +62,7 @@ export default async function Home() {
|
||||||
galerie = galerieResult.status === "fulfilled" ? (galerieResult.value.data ?? []) : [];
|
galerie = galerieResult.status === "fulfilled" ? (galerieResult.value.data ?? []) : [];
|
||||||
kontakt = kontaktResult.status === "fulfilled" ? kontaktResult.value.data : null;
|
kontakt = kontaktResult.status === "fulfilled" ? kontaktResult.value.data : null;
|
||||||
oeffnung = oeffnungResult.status === "fulfilled" ? (oeffnungResult.value.data ?? []) : [];
|
oeffnung = oeffnungResult.status === "fulfilled" ? (oeffnungResult.value.data ?? []) : [];
|
||||||
|
social = socialResult.status === "fulfilled" ? (socialResult.value.data ?? []) : [];
|
||||||
} catch {
|
} catch {
|
||||||
// Supabase nicht konfiguriert — Fallback-Werte greifen
|
// Supabase nicht konfiguriert — Fallback-Werte greifen
|
||||||
}
|
}
|
||||||
|
|
@ -71,7 +75,12 @@ export default async function Home() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="site pb-16 lg:pb-0">
|
<main className="site pb-16 lg:pb-0">
|
||||||
<JsonLd data={localBusinessSchema()} />
|
<JsonLd
|
||||||
|
data={localBusinessSchema({
|
||||||
|
oeffnungszeiten: oeffnung,
|
||||||
|
sameAs: social.map((s) => s.url).filter((u) => u.startsWith("https://")),
|
||||||
|
})}
|
||||||
|
/>
|
||||||
<Header />
|
<Header />
|
||||||
<Hero
|
<Hero
|
||||||
eyebrowText={hero?.eyebrow_text}
|
eyebrowText={hero?.eyebrow_text}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import { CheckList, Consult, PageHead, PageShell, Sub } from "@/components/page/
|
||||||
import JsonLd from "@/components/JsonLd";
|
import JsonLd from "@/components/JsonLd";
|
||||||
import { OG_COMMON, breadcrumbSchema, serviceSchema } from "@/lib/seo";
|
import { OG_COMMON, breadcrumbSchema, serviceSchema } from "@/lib/seo";
|
||||||
import { ShieldCheck, Zap } from "lucide-react";
|
import { ShieldCheck, Zap } from "lucide-react";
|
||||||
|
import { vpnPackages } from "@/lib/pakete";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Zero-Trust-VPN für Unternehmen (Netbird, ab 89 €)",
|
title: "Zero-Trust-VPN für Unternehmen (Netbird, ab 89 €)",
|
||||||
|
|
@ -21,50 +22,6 @@ export const metadata: Metadata = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const vpnPackages = [
|
|
||||||
{
|
|
||||||
name: "Starter",
|
|
||||||
users: "bis 5 Nutzer",
|
|
||||||
devices: "15 Geräte",
|
|
||||||
price: "89",
|
|
||||||
setup: "490",
|
|
||||||
highlight: false,
|
|
||||||
includes: [
|
|
||||||
"Einrichtung & Client-Rollout",
|
|
||||||
"Sicherer Fernzugriff (WireGuard)",
|
|
||||||
"Monitoring & Updates",
|
|
||||||
"E-Mail-Support",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Business",
|
|
||||||
users: "bis 20 Nutzer",
|
|
||||||
devices: "50 Geräte",
|
|
||||||
price: "149",
|
|
||||||
setup: "790",
|
|
||||||
highlight: true,
|
|
||||||
includes: [
|
|
||||||
"Alles aus Starter",
|
|
||||||
"Mehrere Standorte",
|
|
||||||
"Zugriffs-Protokollierung",
|
|
||||||
"Telefon-Support",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Professional",
|
|
||||||
users: "bis 50 Nutzer",
|
|
||||||
devices: "150 Geräte",
|
|
||||||
price: "249",
|
|
||||||
setup: "1.290",
|
|
||||||
highlight: false,
|
|
||||||
includes: [
|
|
||||||
"Alles aus Business",
|
|
||||||
"SLA 4h Reaktionszeit",
|
|
||||||
"NIS2-Dokumentation",
|
|
||||||
"Hochverfügbarkeit",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export default function VpnPage() {
|
export default function VpnPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,47 @@
|
||||||
|
// VPN-Pakete – gemeinsame Quelle für /pakete/vpn und /llms.txt.
|
||||||
|
|
||||||
|
export const vpnPackages = [
|
||||||
|
{
|
||||||
|
name: "Starter",
|
||||||
|
users: "bis 5 Nutzer",
|
||||||
|
devices: "15 Geräte",
|
||||||
|
price: "89",
|
||||||
|
setup: "490",
|
||||||
|
highlight: false,
|
||||||
|
includes: [
|
||||||
|
"Einrichtung & Client-Rollout",
|
||||||
|
"Sicherer Fernzugriff (WireGuard)",
|
||||||
|
"Monitoring & Updates",
|
||||||
|
"E-Mail-Support",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Business",
|
||||||
|
users: "bis 20 Nutzer",
|
||||||
|
devices: "50 Geräte",
|
||||||
|
price: "149",
|
||||||
|
setup: "790",
|
||||||
|
highlight: true,
|
||||||
|
includes: [
|
||||||
|
"Alles aus Starter",
|
||||||
|
"Mehrere Standorte",
|
||||||
|
"Zugriffs-Protokollierung",
|
||||||
|
"Telefon-Support",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Professional",
|
||||||
|
users: "bis 50 Nutzer",
|
||||||
|
devices: "150 Geräte",
|
||||||
|
price: "249",
|
||||||
|
setup: "1.290",
|
||||||
|
highlight: false,
|
||||||
|
includes: [
|
||||||
|
"Alles aus Business",
|
||||||
|
"SLA 4h Reaktionszeit",
|
||||||
|
"NIS2-Dokumentation",
|
||||||
|
"Hochverfügbarkeit",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
58
lib/seo.ts
58
lib/seo.ts
|
|
@ -58,7 +58,45 @@ export function serviceSchema({ name, description, path, price, priceFrom }: Ser
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function localBusinessSchema() {
|
const TAGE: Record<string, string> = {
|
||||||
|
mo: "Monday", di: "Tuesday", mi: "Wednesday", do: "Thursday", fr: "Friday", sa: "Saturday", so: "Sunday",
|
||||||
|
};
|
||||||
|
const TAG_REIHE = ["mo", "di", "mi", "do", "fr", "sa", "so"];
|
||||||
|
|
||||||
|
/** Wandelt z. B. „Mo – Fr“, „Montag bis Freitag“ oder „Sa“ in schema.org-Wochentage um. Unbekanntes → []. */
|
||||||
|
export function parseTage(tag: string): string[] {
|
||||||
|
if (tag.includes(",")) return [];
|
||||||
|
const teile = tag
|
||||||
|
.toLowerCase()
|
||||||
|
.split(/\s*(?:–|-|bis)\s*/)
|
||||||
|
.map((t) => t.trim().slice(0, 2))
|
||||||
|
.filter(Boolean);
|
||||||
|
if (teile.length === 1 && TAGE[teile[0]]) return [TAGE[teile[0]]];
|
||||||
|
if (teile.length === 2) {
|
||||||
|
const a = TAG_REIHE.indexOf(teile[0]);
|
||||||
|
const b = TAG_REIHE.indexOf(teile[1]);
|
||||||
|
if (a >= 0 && b >= a) return TAG_REIHE.slice(a, b + 1).map((t) => TAGE[t]);
|
||||||
|
}
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
const UHRZEIT = /^\d{1,2}:\d{2}$/;
|
||||||
|
|
||||||
|
interface LocalBusinessInput {
|
||||||
|
oeffnungszeiten?: { tag: string; von: string; bis: string }[];
|
||||||
|
/** Profile wie Google, LinkedIn, Instagram – stärkt die Zuordnung der Marke */
|
||||||
|
sameAs?: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export function localBusinessSchema({ oeffnungszeiten = [], sameAs = [] }: LocalBusinessInput = {}) {
|
||||||
|
const openingHoursSpecification = oeffnungszeiten.flatMap((oz) => {
|
||||||
|
const tage = parseTage(oz.tag);
|
||||||
|
const von = oz.von.trim().replace(/\s*uhr$/i, "").replace(".", ":");
|
||||||
|
const bis = oz.bis.trim().replace(/\s*uhr$/i, "").replace(".", ":");
|
||||||
|
if (!tage.length || !UHRZEIT.test(von) || !UHRZEIT.test(bis)) return [];
|
||||||
|
return [{ "@type": "OpeningHoursSpecification", dayOfWeek: tage, opens: von, closes: bis }];
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@graph": [
|
"@graph": [
|
||||||
|
|
@ -69,10 +107,13 @@ export function localBusinessSchema() {
|
||||||
description:
|
description:
|
||||||
"IT-Dienstleister in Crailsheim für Privat- und Geschäftskunden: WLAN und Netzwerk, Datensicherung, Zero-Trust-VPN, Nextcloud und Paperless-ngx, Familienschutz, Server und Webseiten.",
|
"IT-Dienstleister in Crailsheim für Privat- und Geschäftskunden: WLAN und Netzwerk, Datensicherung, Zero-Trust-VPN, Nextcloud und Paperless-ngx, Familienschutz, Server und Webseiten.",
|
||||||
url: SITE_URL,
|
url: SITE_URL,
|
||||||
image: `${SITE_URL}/opengraph-image`,
|
image: `${SITE_URL}/og`,
|
||||||
|
logo: `${SITE_URL}/icon`,
|
||||||
telephone: PHONE_E164,
|
telephone: PHONE_E164,
|
||||||
email: EMAIL,
|
email: EMAIL,
|
||||||
founder: { "@type": "Person", name: "Markus Butz" },
|
founder: { "@type": "Person", name: "Markus Butz" },
|
||||||
|
...(openingHoursSpecification.length > 0 && { openingHoursSpecification }),
|
||||||
|
...(sameAs.length > 0 && { sameAs }),
|
||||||
address: {
|
address: {
|
||||||
"@type": "PostalAddress",
|
"@type": "PostalAddress",
|
||||||
streetAddress: "Mörikestr. 2",
|
streetAddress: "Mörikestr. 2",
|
||||||
|
|
@ -120,3 +161,16 @@ export function localBusinessSchema() {
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** FAQPage-Schema: nur für FAQs, die auch sichtbar auf der Seite stehen. */
|
||||||
|
export function faqSchema(faq: { frage: string; antwort: string }[]) {
|
||||||
|
return {
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "FAQPage",
|
||||||
|
mainEntity: faq.map((f) => ({
|
||||||
|
"@type": "Question",
|
||||||
|
name: f.frage,
|
||||||
|
acceptedAnswer: { "@type": "Answer", text: f.antwort },
|
||||||
|
})),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue