diff --git a/app/layout.tsx b/app/layout.tsx index 2be39d3..ca5d0f0 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -11,6 +11,20 @@ const notoSans = Noto_Sans({ export const metadata: Metadata = { title: "Shava Jaya’s Portfolio", description: "My personal online portfolio", + openGraph: { + title: "Shava Jaya’s Portfolio", + description: "My personal online portfolio", + url: "https://www.hkaar.vercel.app", + siteName: "Shava Jaya Portfolio", + images: [ + { + url: "https://www.hkaar.vercel.app/images/preview.png", + width: 1200, + height: 630, + alt: "Shava Jaya Portfolio" + }, + ], + }, }; export default function RootLayout({ diff --git a/app/robots.ts b/app/robots.ts new file mode 100644 index 0000000..4582f51 --- /dev/null +++ b/app/robots.ts @@ -0,0 +1,11 @@ +import type { MetadataRoute } from 'next' + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: '*', + allow: '/', + }, + sitemap: 'https://www.hkaar.vercel.app/sitemap.xml', + } +} \ No newline at end of file diff --git a/app/sitemap.ts b/app/sitemap.ts new file mode 100644 index 0000000..873a87a --- /dev/null +++ b/app/sitemap.ts @@ -0,0 +1,30 @@ +import type { MetadataRoute } from "next"; + +export default function sitemap(): MetadataRoute.Sitemap { + return [ + { + url: "https://hkaar.vercel.app", + lastModified: new Date(), + changeFrequency: "monthly", + priority: 1, + }, + { + url: "https://hkaar.vercel.app/projects", + lastModified: new Date(), + changeFrequency: "monthly", + priority: 0.8, + }, + { + url: "https://hkaar.vercel.app/blog", + lastModified: new Date(), + changeFrequency: "monthly", + priority: 0.8, + }, + { + url: "https://hkaar.vercel.app/contact", + lastModified: new Date(), + changeFrequency: "yearly", + priority: 0.5, + }, + ]; +} diff --git a/public/images/preview.png b/public/images/preview.png new file mode 100644 index 0000000..99702e0 Binary files /dev/null and b/public/images/preview.png differ