From 84acfadf9644cd6bb0974f83fc99942c045b164d Mon Sep 17 00:00:00 2001 From: AyrisAI Date: Sat, 25 Jul 2026 11:11:44 +0300 Subject: [PATCH] feat: AI SEO optimization - JSON-LD schemas, per-page metadata, dynamic lesson metadata --- app/[locale]/cheatsheets/layout.tsx | 50 +++++++++++ app/[locale]/layout.tsx | 37 +++++++++ app/[locale]/lessons/[slug]/layout.tsx | 110 +++++++++++++++++++++++++ app/[locale]/lessons/layout.tsx | 52 ++++++++++++ app/[locale]/prompts/layout.tsx | 50 +++++++++++ 5 files changed, 299 insertions(+) create mode 100644 app/[locale]/cheatsheets/layout.tsx create mode 100644 app/[locale]/lessons/[slug]/layout.tsx create mode 100644 app/[locale]/lessons/layout.tsx create mode 100644 app/[locale]/prompts/layout.tsx diff --git a/app/[locale]/cheatsheets/layout.tsx b/app/[locale]/cheatsheets/layout.tsx new file mode 100644 index 0000000..cde6597 --- /dev/null +++ b/app/[locale]/cheatsheets/layout.tsx @@ -0,0 +1,50 @@ +import type { Metadata } from 'next'; + +const BASE_URL = 'https://ayrisai.xyz'; + +export const metadata: Metadata = { + title: 'Developer Cheatsheets & Quick Reference | ayris.tech', + description: + 'Free developer cheatsheets for Git, Next.js App Router, Docker, TypeScript, Python, SQL, and more. Quick-copy command references used in ayris.tech YouTube tutorials.', + keywords: [ + 'developer cheatsheet', 'Git commands cheatsheet', 'Next.js cheatsheet', + 'Docker commands', 'TypeScript quick reference', 'SQL cheatsheet', + 'programming reference card', 'ayris.tech', + ], + alternates: { + canonical: `${BASE_URL}/en/cheatsheets`, + }, + openGraph: { + title: 'Developer Cheatsheets & Quick Reference | ayris.tech', + description: 'Free copy-paste developer cheatsheets for Git, Next.js, Docker, TypeScript, and more.', + url: `${BASE_URL}/en/cheatsheets`, + type: 'website', + }, +}; + +export default function CheatsheetsLayout({ children }: { children: React.ReactNode }) { + return ( + <> +