mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 14:19:11 +03:00
add canonical URL option to guides meta data
This commit is contained in:
1 parent
d9846650ef
commit
0976f9ba7b
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user