Files
kovakyazilim/app/layout.tsx
T
egecankomur d49c9aa225 feat: SEO altyapısı + admin editör/favicon/menü düzeltmeleri
Admin & site:
- @tailwindcss/typography ekle → editör ve yayın içeriği prose stilleriyle düzgün render
- Favicon: logo.png'den kare app/icon.png + apple-icon.png, varsayılan favicon.ico kaldırıldı
- SEO keyword: seo_settings.default_keywords + seo_pages.keywords + buildMetadata birleştirme
- Menü düzeni admin'den yönetilebilir (site_settings.nav_items, /admin/menu, header & mobile-menu refactor)

SEO:
- app/sitemap.ts (statik + blog/hizmet/çözüm/proje/sektör dinamik)
- app/robots.ts (sitemap ref + /admin,/api disallow)
- app/llms.txt/route.ts (AI/LLM rehberi)
- BlogPosting/Service/FAQ/Article JSON-LD wire (json-ld bileşenleri bağlandı)
- buildMetadata: blog/proje OG görseli + type article + keywords birleştirme düzeltmesi
- blog tags → keyword
2026-06-04 07:15:18 +03:00

61 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { siteConfig } from "@/lib/site-config";
import { ConsentInit } from "@/components/consent-init";
import { CookieBanner } from "@/components/cookie-banner";
import { getSeoSettings } from "@/lib/data";
const sans = Geist({
variable: "--font-poppins",
subsets: ["latin"],
display: "swap",
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: {
default: `${siteConfig.name} — Yazılım, Web ve CRM Çözümleri`,
template: `%s | ${siteConfig.name}`,
},
description: siteConfig.tagline,
metadataBase: new URL(siteConfig.url),
openGraph: {
title: siteConfig.name,
description: siteConfig.tagline,
locale: "tr_TR",
type: "website",
},
// Favicon/app ikonları app/icon.png + app/apple-icon.png dosya
// konvansiyonundan otomatik üretilir (logo.png'den kare kırpıldı).
};
export default async function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
let gtmId: string | null = null;
try {
const seo = await getSeoSettings();
gtmId = seo?.gtm_id ?? null;
} catch {
gtmId = null;
}
return (
<html
lang="tr"
className={`${sans.variable} ${geistMono.variable} h-full antialiased`}
>
<body className="min-h-full flex flex-col bg-white text-[var(--foreground)]">
<ConsentInit gtmId={gtmId} />
{children}
<CookieBanner />
</body>
</html>
);
}