From 7e1161e459e6dfdf8a6f86d7994693d2ef017811 Mon Sep 17 00:00:00 2001 From: Dan Costello Date: Thu, 5 Jun 2025 13:27:32 -0700 Subject: [PATCH] Add golang metatags --- app/(home)/layout.tsx | 9 +++++++++ app/(meta)/authz/page.tsx | 7 +++++++ app/(meta)/layout.tsx | 14 ++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 app/(meta)/authz/page.tsx create mode 100644 app/(meta)/layout.tsx diff --git a/app/(home)/layout.tsx b/app/(home)/layout.tsx index b761677..7ff9af3 100644 --- a/app/(home)/layout.tsx +++ b/app/(home)/layout.tsx @@ -1,6 +1,15 @@ import type { ReactNode } from "react"; import { HomeLayout } from "fumadocs-ui/layouts/home"; import { baseOptions } from "@/app/layout.config"; +import { Metadata } from "next"; + +export const metadata: Metadata = { + other: { + "go-import": [ + "userclouds.com git userclouds.com git https://github.com/userclouds/sdk-golang.git", + ], + }, +}; export default function Layout({ children }: { children: ReactNode }) { return ( diff --git a/app/(meta)/authz/page.tsx b/app/(meta)/authz/page.tsx new file mode 100644 index 0000000..6734d20 --- /dev/null +++ b/app/(meta)/authz/page.tsx @@ -0,0 +1,7 @@ +export default function AuthzPage() { + return ( +
+ 👋 +
+ ); +} diff --git a/app/(meta)/layout.tsx b/app/(meta)/layout.tsx new file mode 100644 index 0000000..3f9805f --- /dev/null +++ b/app/(meta)/layout.tsx @@ -0,0 +1,14 @@ +import { Metadata } from "next"; +import type { ReactNode } from "react"; + +export const metadata: Metadata = { + other: { + "go-import": [ + "userclouds.com git https://github.com/userclouds/authzsdk-golang.git", + ], + }, +}; + +export default function Layout({ children }: { children: ReactNode }) { + return <>{children}; +}