chore: implement critical SEO enhancements (sitemap, robots, layout metadata, schema)

This commit is contained in:
mstfyldz
2026-05-30 19:59:48 +03:00
parent 38e823dff0
commit 9daad48a4d
3 changed files with 112 additions and 0 deletions
+50
View File
@@ -22,9 +22,53 @@ const ibmPlexMono = IBM_Plex_Mono({
}); });
export const metadata: Metadata = { export const metadata: Metadata = {
metadataBase: new URL('https://ayris.tech'),
title: "Ayris Tech | Forging the Future with AI & Blockchain", title: "Ayris Tech | Forging the Future with AI & Blockchain",
description: "Ayris Tech delivers enterprise-grade digital transformation. We build the impossible for the next generation of business using AI, Blockchain, and modern web technologies.", description: "Ayris Tech delivers enterprise-grade digital transformation. We build the impossible for the next generation of business using AI, Blockchain, and modern web technologies.",
keywords: ["AI Solutions", "Blockchain Development", "Mobile App", "Web Development", "Digital Transformation"], keywords: ["AI Solutions", "Blockchain Development", "Mobile App", "Web Development", "Digital Transformation"],
openGraph: {
title: "Ayris Tech | Forging the Future with AI & Blockchain",
description: "Ayris Tech delivers enterprise-grade digital transformation. We build the impossible for the next generation of business using AI, Blockchain, and modern web technologies.",
url: 'https://ayris.tech',
siteName: 'Ayris Tech',
images: [
{
url: '/og-image.jpg',
width: 1200,
height: 630,
alt: 'Ayris Tech - AI & Blockchain Solutions'
}
],
locale: 'en_US',
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: "Ayris Tech | Forging the Future with AI & Blockchain",
description: "Ayris Tech delivers enterprise-grade digital transformation.",
images: ['/og-image.jpg'],
},
alternates: {
canonical: '/',
languages: {
'en': '/en',
'tr': '/tr',
},
},
};
const jsonLd = {
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'Ayris Tech',
url: 'https://ayris.tech',
logo: 'https://ayris.tech/logo.png', // Update with actual logo URL if available
description: 'Ayris Tech delivers enterprise-grade digital transformation using AI, Blockchain, and modern web technologies.',
address: {
'@type': 'PostalAddress',
addressLocality: 'Muğla',
addressCountry: 'TR'
}
}; };
export async function generateStaticParams() { export async function generateStaticParams() {
@@ -41,6 +85,12 @@ export default async function RootLayout({
const { lang } = await params; const { lang } = await params;
return ( return (
<html lang={lang} className="scroll-smooth"> <html lang={lang} className="scroll-smooth">
<head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
</head>
<body className={`${archivo.variable} ${spaceGrotesk.variable} ${ibmPlexMono.variable} font-body bg-[#F4F0E8] text-[#0A0A0A] antialiased`}> <body className={`${archivo.variable} ${spaceGrotesk.variable} ${ibmPlexMono.variable} font-body bg-[#F4F0E8] text-[#0A0A0A] antialiased`}>
{children} {children}
</body> </body>
+12
View File
@@ -0,0 +1,12 @@
import { MetadataRoute } from 'next';
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
disallow: ['/admin/'],
},
sitemap: 'https://ayris.tech/sitemap.xml',
};
}
+50
View File
@@ -0,0 +1,50 @@
import { MetadataRoute } from 'next';
export default function sitemap(): MetadataRoute.Sitemap {
const baseUrl = 'https://ayris.tech';
return [
{
url: `${baseUrl}`,
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 1,
},
{
url: `${baseUrl}/en`,
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 1,
},
{
url: `${baseUrl}/tr`,
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 1,
},
{
url: `${baseUrl}/en/blog`,
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 0.8,
},
{
url: `${baseUrl}/tr/blog`,
lastModified: new Date(),
changeFrequency: 'weekly',
priority: 0.8,
},
{
url: `${baseUrl}/en/work`,
lastModified: new Date(),
changeFrequency: 'monthly',
priority: 0.8,
},
{
url: `${baseUrl}/tr/work`,
lastModified: new Date(),
changeFrequency: 'monthly',
priority: 0.8,
},
];
}