The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add related articles links
Jonathan Summers-Muir4eca7f0e0119
diff --git a/www/pages/_app.tsx b/www/pages/_app.tsxindex 15fb6fd84d2..91edf24363c 100644--- a/www/pages/_app.tsx+++ b/www/pages/_app.tsx@@ -56,7 +56,7 @@ export default function MyApp({ Component, pageProps }: AppProps) {url: `${basePath}/images/og/og-image.jpg`,width: 800,height: 600,- alt: 'Og Image Alt',+ alt: 'Supabase Og Image',},],}}diff --git a/www/pages/blog.tsx b/www/pages/blog.tsxindex 600faff1dd7..43590475663 100644--- a/www/pages/blog.tsx+++ b/www/pages/blog.tsx@@ -152,7 +152,7 @@ function BlogListItem(blog: any) {// console.log(blog.content.substring(0, 120))return (- <div key={blog.id} className="py-4 border-b border-gray-100 dark:border-gray-600 mb-8">+ <div key={blog.id} className="pt-4 pb-12 border-b border-gray-100 dark:border-gray-600 mb-8"><div className="mx-auto max-w-7xl cursor-pointer"><Link href={`/blog/${blog.slug}`} as={`/blog/${blog.slug}`}><div>diff --git a/www/pages/blog/[slug].tsx b/www/pages/blog/[slug].tsxindex ca46a4f1aad..e93d3eb643a 100644--- a/www/pages/blog/[slug].tsx+++ b/www/pages/blog/[slug].tsx@@ -16,6 +16,7 @@ import { IconFile, Space, Typography, Badge } from '@supabase/ui'import CodeBlock from '~/components/CodeBlock/CodeBlock'import blogStyles from './[slug].module.css'+import Link from 'next/link'// import all components used in blog articles here// for instance, if you use a button, you must add `Button` in the components object below.@@ -136,12 +137,18 @@ function BlogPostPage(props: any) {</Typography.Title><Space direction="vertical">{props.relatedPosts.map((post: any) => (- <Typography.Text>- <Space>- <IconFile size={'small'} style={{ minWidth: '1.2rem' }} />- <span>{post.title}</span>- </Space>- </Typography.Text>+ <Link href={`/blog/${post.slug}`} as={`/blog/${post.slug}`}>+ <div>+ <Typography.Text className="cursor-pointer">+ <Space>+ <IconFile size={'small'} style={{ minWidth: '1.2rem' }} />+ <span className="hover:text-gray-900 dark:hover:text-white">+ {post.title}+ </span>+ </Space>+ </Typography.Text>+ </div>+ </Link>))}</Space></div>@@ -176,7 +183,9 @@ export async function getStaticProps({ params }: any) {},})- const relatedPosts = getSortedPosts(5, mdxSource.tags)+ console.log('tagsss', mdxSource.scope.tags)++ const relatedPosts = getSortedPosts(5, mdxSource.scope.tags)return {props: {