Skip to content

Commit

Permalink
Tried making seo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hkaar committed Nov 6, 2024
1 parent 80368dc commit 426fa45
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
11 changes: 11 additions & 0 deletions app/robots.ts
Original file line number Diff line number Diff line change
@@ -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',
}
}
30 changes: 30 additions & 0 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -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,
},
];
}
Binary file added public/images/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 426fa45

Please sign in to comment.