SEO
This commit is contained in:
@@ -33,22 +33,35 @@ export async function generateStaticParams() {
|
|||||||
return [{ locale: "en" }, { locale: "de" }];
|
return [{ locale: "en" }, { locale: "de" }];
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function LocaleLayout({
|
export default async function LocaleLayout({
|
||||||
children,
|
children,
|
||||||
|
params,
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
params: Promise<{ locale: string }>;
|
||||||
}) {
|
}) {
|
||||||
|
const { locale } = await params;
|
||||||
return (
|
return (
|
||||||
<>
|
<html lang={locale}>
|
||||||
{children}
|
<head>
|
||||||
{process.env.NEXT_PUBLIC_UMAMI_SRC && process.env.NEXT_PUBLIC_UMAMI_ID && (
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<Script
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
defer
|
<link
|
||||||
src={process.env.NEXT_PUBLIC_UMAMI_SRC}
|
href="https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800&family=Archivo+Expanded:wght@700;800&family=Inter:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap"
|
||||||
data-website-id={process.env.NEXT_PUBLIC_UMAMI_ID}
|
rel="stylesheet"
|
||||||
strategy="afterInteractive"
|
|
||||||
/>
|
/>
|
||||||
)}
|
</head>
|
||||||
</>
|
<body>
|
||||||
|
{children}
|
||||||
|
{process.env.NEXT_PUBLIC_UMAMI_SRC && process.env.NEXT_PUBLIC_UMAMI_ID && (
|
||||||
|
<Script
|
||||||
|
defer
|
||||||
|
src={process.env.NEXT_PUBLIC_UMAMI_SRC}
|
||||||
|
data-website-id={process.env.NEXT_PUBLIC_UMAMI_ID}
|
||||||
|
strategy="afterInteractive"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
|
||||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||||
return (
|
return children;
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
|
||||||
<link
|
|
||||||
href="https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800&family=Archivo+Expanded:wght@700;800&family=Inter:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap"
|
|
||||||
rel="stylesheet"
|
|
||||||
/>
|
|
||||||
</head>
|
|
||||||
<body>{children}</body>
|
|
||||||
</html>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import { Dictionary } from "./types";
|
|||||||
|
|
||||||
const de: Dictionary = {
|
const de: Dictionary = {
|
||||||
meta: {
|
meta: {
|
||||||
title: "WM 26 — Gruppen & K.o.-Baum",
|
title: "WM 2026 Live-Ticker, Ergebnisse & K.o.-Baum",
|
||||||
description:
|
description:
|
||||||
"Live-Gruppentabellen, Drittplatzierten-Wertung und der vollständige K.o.-Baum der FIFA WM 2026 mit Annex-C-Zuordnung und Polymarket-Wahrscheinlichkeiten.",
|
"Live-Ergebnisse, Gruppentabellen, K.o.-Baum und Prognosen zur Fußball-WM 2026 in den USA, Kanada & Mexiko. Alle Spiele in Echtzeit.",
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
hostCountries: "USA · Kanada · Mexiko",
|
hostCountries: "USA · Kanada · Mexiko",
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ function ordinal(n: number): string {
|
|||||||
|
|
||||||
const en: Dictionary = {
|
const en: Dictionary = {
|
||||||
meta: {
|
meta: {
|
||||||
title: "WC 26 — Groups & KO Bracket",
|
title: "World Cup 2026 Live Scores, Bracket & Standings",
|
||||||
description:
|
description:
|
||||||
"Live group tables, third-place ranking and the complete KO bracket for the FIFA World Cup 2026 with Annex C assignment and Polymarket probabilities.",
|
"Live scores, group standings, knockout bracket and match predictions for the 2026 FIFA World Cup in the USA, Canada & Mexico. Real-time results.",
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
hostCountries: "USA · Canada · Mexico",
|
hostCountries: "USA · Canada · Mexico",
|
||||||
|
|||||||
Reference in New Issue
Block a user