mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
feat: ✨ Add openGraph and keywords to page metadata
This commit is contained in:
parent
4b773e114a
commit
ff57ee4ffd
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue