add canonical URL option to guides meta data

This commit is contained in:
dshukertjr committed 2023-01-31 16:43:33 +09:00
1 parent d9846650ef
commit 0976f9ba7b
1 file changed
+2 -1
+2 -1
View File
@@ -17,6 +17,7 @@ interface Props {
hide_table_of_contents?: boolean
breadcrumb?: string
subtitle?: string
canonical?: string
}
children: any
toc?: any
@@ -67,7 +68,7 @@ const Layout: FC<Props> = (props) => {
<NextSeo
title={`${props.meta?.title} | Supabase Docs`}
description={props.meta?.description ? props.meta?.description : props.meta?.title}
canonical={`https://supabase.com/docs${asPath}`}
canonical={props.meta?.canonical ?? `https://supabase.com/docs${asPath}`}
openGraph={{
title: props.meta?.title,
description: props.meta?.description,