Skip to content

Commit

Permalink
Feat: search engine optimizations (#16)
Browse files Browse the repository at this point in the history
* feat: Allow web crawling

* feat: Add open graph images

* fix: Update url to primary image
  • Loading branch information
steezplusplus authored Sep 18, 2023
1 parent b992ab9 commit 96d03f4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
23 changes: 22 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,28 @@ const lora = Lora({ subsets: ['latin'] });

export const metadata: Metadata = {
title: "Jesse's Digital Garden",
description: 'A collection of expertly built programming projects.',
description: 'An open source web dev portfolio',
openGraph: {
title: "Jesse's Digital Garden",
description: 'An open source web dev portfolio',
url: 'https://digital-garden-steez.vercel.app/',
siteName: "Jesse's Digital Garden",
images: [
{
url: './primry.jpg',
width: 800,
height: 600,
},
{
url: './primary.jpg',
width: 1800,
height: 1600,
alt: 'Image of neon light tubes',
},
],
locale: 'en_US',
type: 'website',
},
};

export default function RootLayout({ children }: { children: React.ReactNode }) {
Expand Down
10 changes: 10 additions & 0 deletions app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { MetadataRoute } from 'next';

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
},
};
}

0 comments on commit 96d03f4

Please sign in to comment.