Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

feat: enhance homepage metadata for SEO and social sharing

Andrej622367ec2eb7
diff --git a/apps/docs/app/(home)/layout.tsx b/apps/docs/app/(home)/layout.tsx
index d21adf63d..2b6c070f1 100644
--- a/apps/docs/app/(home)/layout.tsx
+++ b/apps/docs/app/(home)/layout.tsx
@@ -1,6 +1,20 @@
import { baseOptions } from "@/app/layout.config";
import { HomeLayout } from "fumadocs-ui/layouts/home";
import type { ReactNode } from "react";
+import type { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Kaneo",
+ description:
+ "An open source project management platform focused on simplicity and efficiency.",
+ alternates: {
+ canonical: "https://kaneo.app",
+ },
+ openGraph: {
+ images: ["/og.png"],
+ },
+ metadataBase: new URL("https://kaneo.app"),
+};
export default function Layout({ children }: { children: ReactNode }) {
return <HomeLayout {...baseOptions}>{children}</HomeLayout>;
diff --git a/apps/docs/app/(home)/page.tsx b/apps/docs/app/(home)/page.tsx
index a080789c4..dac55eb47 100644
--- a/apps/docs/app/(home)/page.tsx
+++ b/apps/docs/app/(home)/page.tsx
@@ -3,13 +3,6 @@ import Features from "@/components/features";
import Footer from "@/components/footer";
import Hero from "@/components/hero";
import Stats from "@/components/stats";
-import type { Metadata } from "next";
-
-export const metadata: Metadata = {
- title: "Kaneo",
- description:
- "An open source project management platform focused on simplicity and efficiency.",
-};
export default function HomePage() {
return (