mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
feat: add seo images
This commit is contained in:
parent
010ea99f76
commit
6904d2d663
@ -1,5 +1,6 @@
|
||||
import { source } from "@/lib/source";
|
||||
import { openapi } from "@/lib/source";
|
||||
import { baseUrl } from "@/utils/metadata";
|
||||
import { ImageZoom } from "fumadocs-ui/components/image-zoom";
|
||||
import defaultMdxComponents from "fumadocs-ui/mdx";
|
||||
import {
|
||||
@ -64,6 +65,53 @@ export async function generateMetadata(props: {
|
||||
|
||||
return {
|
||||
title: page.data.title,
|
||||
|
||||
description: page.data.description,
|
||||
robots: "index,follow",
|
||||
alternates: {
|
||||
canonical: new URL(`${baseUrl}${page.url}`).toString(),
|
||||
languages: {
|
||||
en: `${baseUrl}/${page.url}`,
|
||||
},
|
||||
},
|
||||
openGraph: {
|
||||
title: page.data.title,
|
||||
description: page.data.description,
|
||||
url: new URL(`${baseUrl}`).toString(),
|
||||
images: [
|
||||
{
|
||||
url: new URL(`${baseUrl}/logo.png`).toString(),
|
||||
width: 1200,
|
||||
height: 630,
|
||||
alt: page.data.title,
|
||||
},
|
||||
],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
creator: "@getdokploy",
|
||||
title: page.data.title,
|
||||
description: page.data.description,
|
||||
images: [
|
||||
{
|
||||
url: new URL(`${baseUrl}/logo.png`).toString(),
|
||||
width: 1200,
|
||||
height: 630,
|
||||
alt: page.data.title,
|
||||
},
|
||||
],
|
||||
},
|
||||
applicationName: "Dokploy Docs",
|
||||
keywords: [
|
||||
"dokploy",
|
||||
"vps",
|
||||
"open source",
|
||||
"cloud",
|
||||
"self hosting",
|
||||
"free",
|
||||
],
|
||||
icons: {
|
||||
icon: "/icon.svg",
|
||||
},
|
||||
};
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ export const metadata = createMetadata({
|
||||
template: "%s | Dokploy",
|
||||
default: "Dokploy",
|
||||
},
|
||||
description: "The Open Source Alternative to Vercel, Heroku, and Netlify.",
|
||||
description: "The Open Source Alternative to Vercel, Heroku, and Netlify",
|
||||
metadataBase: new URL(baseUrl),
|
||||
});
|
||||
|
||||
|
@ -14,7 +14,7 @@ export function createMetadata(override: Metadata): Metadata {
|
||||
title: override.title ?? undefined,
|
||||
description: override.description ?? undefined,
|
||||
url: "https://fumadocs.vercel.app",
|
||||
images: "/banner.png",
|
||||
images: "/og.png",
|
||||
siteName: "Fumadocs",
|
||||
...override.openGraph,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user