⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: add Icon component for Open Graph image generation and update metadata structure
Andrej75ece2a037a4
diff --git a/apps/docs/app/docs/[[...slug]]/page.tsx b/apps/docs/app/docs/[[...slug]]/page.tsxindex d148cfb77..b8b6f9693 100644--- a/apps/docs/app/docs/[[...slug]]/page.tsx+++ b/apps/docs/app/docs/[[...slug]]/page.tsx@@ -48,11 +48,14 @@ export async function generateMetadata({].join("/");return {- title: page.data.title,+ title: `${page.data.title} | Kaneo`,description: page.data.description,+ alternates: {+ canonical: `/docs/${page.slugs.join("/")}`,+ },openGraph: {images: image,- title: page.data.title,+ title: `${page.data.title} | Kaneo`,description: page.data.description,url: `/docs/${page.slugs.join("/")}`,siteName: "Kaneo",@@ -62,7 +65,7 @@ export async function generateMetadata({twitter: {card: "summary_large_image",images: image,- title: page.data.title,+ title: `${page.data.title} | Kaneo`,description: page.data.description,creator: "@aacevski",site: "https://kaneo.app",diff --git a/apps/docs/app/icon.tsx b/apps/docs/app/icon.tsxnew file mode 100644index 000000000..670d98d3f--- /dev/null+++ b/apps/docs/app/icon.tsx@@ -0,0 +1,45 @@+import { ImageResponse } from "next/og";++export const size = {+ width: 32,+ height: 32,+};+export const contentType = "image/png";++export const revalidate = false;++export default function Icon() {+ return new ImageResponse(+ <div+ style={{+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ width: "100%",+ height: "100%",+ background: "rgba(99,102,241,0.1)",+ borderRadius: "8px",+ }}+ >+ {/* biome-ignore lint/a11y/noSvgWithoutTitle: It's an icon */}+ <svg+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="rgb(99,102,241)"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <rect width="7" height="7" x="3" y="3" rx="1" />+ <rect width="7" height="7" x="14" y="3" rx="1" />+ <rect width="7" height="7" x="14" y="14" rx="1" />+ <rect width="7" height="7" x="3" y="14" rx="1" />+ </svg>+ </div>,+ {+ ...size,+ },+ );+}