The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add toc_depth option for blog posts
Jonathan Summers-Muirc95257b87b50
diff --git a/www/pages/blog/[year]/[month]/[day]/[slug].tsx b/www/pages/blog/[year]/[month]/[day]/[slug].tsxindex 7e098ca530b..5e5abd95a7d 100644--- a/www/pages/blog/[year]/[month]/[day]/[slug].tsx+++ b/www/pages/blog/[year]/[month]/[day]/[slug].tsx@@ -78,7 +78,7 @@ export async function getStaticProps({ params }: any) {slug: `${params.year}/${params.month}/${params.day}/${params.slug}`,content: mdxSource,...data,- toc: toc(content, { maxdepth: 2 }),+ toc: toc(content, { maxdepth: data.toc_depth ? data.toc_depth : 2 }),},},}