feat: Add openGraph and keywords to page metadata

This commit is contained in:
Jesse Wierzbinski 2024-08-13 16:10:18 +02:00
parent 4b773e114a
commit ff57ee4ffd
No known key found for this signature in database

View file

@ -6,6 +6,7 @@ import type { Section } from "../components/SectionProvider";
import { Providers } from "./providers"; import { Providers } from "./providers";
import "@/styles/tailwind.css"; import "@/styles/tailwind.css";
import logo from "@/images/branding/logo.webp";
import type { ReactNode } from "react"; import type { ReactNode } from "react";
export const metadata: Metadata = { export const metadata: Metadata = {
@ -13,6 +14,18 @@ export const metadata: Metadata = {
template: "%s • Lysand API Reference", template: "%s • Lysand API Reference",
default: "Lysand API Reference", default: "Lysand API Reference",
}, },
keywords: ["federation", "api", "reference", "documentation", "lysand"],
metadataBase: new URL("https://dev.lysand.org"),
openGraph: {
type: "article",
images: {
url: logo.src,
alt: "Lysand logo",
height: logo.height,
width: logo.width,
type: "image/webp",
},
},
}; };
export default async function RootLayout({ export default async function RootLayout({