Add OpenGraph metadata to web app pages for improve social share links

This commit is contained in:
Debanjum Singh Solanky
2024-08-10 16:03:13 +05:30
parent fc411091c8
commit b3c6c8c84b
8 changed files with 103 additions and 0 deletions

View File

@@ -11,6 +11,20 @@ export const metadata: Metadata = {
icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png",
},
openGraph: {
siteName: "Khoj AI",
title: "Khoj AI - Agents",
description: "Your Second Brain.",
url: "https://app.khoj.dev/agents",
type: "website",
images: [
{
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
width: 256,
height: 256,
},
],
},
};
export default function RootLayout({

View File

@@ -10,6 +10,20 @@ export const metadata: Metadata = {
icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png",
},
openGraph: {
siteName: "Khoj AI",
title: "Khoj AI - Automations",
description: "Your Second Brain.",
url: "https://app.khoj.dev/automations",
type: "website",
images: [
{
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
width: 256,
height: 256,
},
],
},
};
export default function RootLayout({

View File

@@ -12,6 +12,20 @@ export const metadata: Metadata = {
icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png",
},
openGraph: {
siteName: "Khoj AI",
title: "Khoj AI - Chat",
description: "Your Second Brain.",
url: "https://app.khoj.dev/chat",
type: "website",
images: [
{
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
width: 256,
height: 256,
},
],
},
};
export default function RootLayout({

View File

@@ -8,6 +8,20 @@ export const metadata: Metadata = {
icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png",
},
openGraph: {
siteName: "Khoj AI",
title: "Khoj AI - Fact Checker",
description: "Your Second Brain.",
url: "https://app.khoj.dev/factchecker",
type: "website",
images: [
{
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
width: 256,
height: 256,
},
],
},
};
export default function RootLayout({

View File

@@ -12,6 +12,25 @@ export const metadata: Metadata = {
apple: "/static/assets/icons/khoj_lantern_256x256.png",
},
manifest: "/static/khoj.webmanifest",
openGraph: {
siteName: "Khoj AI",
title: "Khoj AI - Home",
description: "Your Second Brain.",
url: "https://app.khoj.dev",
type: "website",
images: [
{
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
width: 256,
height: 256,
},
{
url: "https://assets.khoj.dev/khoj_lantern_logomarktype_1200x630.png",
width: 1200,
height: 630,
},
],
},
};
export default function RootLayout({

View File

@@ -10,6 +10,20 @@ export const metadata: Metadata = {
icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png",
},
openGraph: {
siteName: "Khoj AI",
title: "Khoj AI - Search",
description: "Your Second Brain.",
url: "https://app.khoj.dev/search",
type: "website",
images: [
{
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
width: 256,
height: 256,
},
],
},
};
export default function RootLayout({

View File

@@ -12,6 +12,20 @@ export const metadata: Metadata = {
icon: "/static/assets/icons/khoj_lantern.ico",
apple: "/static/assets/icons/khoj_lantern_256x256.png",
},
openGraph: {
siteName: "Khoj AI",
title: "Khoj AI - Settings",
description: "Your Second Brain.",
url: "https://app.khoj.dev/settings",
type: "website",
images: [
{
url: "https://assets.khoj.dev/khoj_lantern_256x256.png",
width: 256,
height: 256,
},
],
},
};
export default function RootLayout({

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB