The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
blog: capitalize title in tag index page
Francesco Sansalvadoree335c9f2511d
diff --git a/apps/www/pages/blog/tags/[tag].tsx b/apps/www/pages/blog/tags/[tag].tsxindex 2213d5de952..825d9d6e582 100644--- a/apps/www/pages/blog/tags/[tag].tsx+++ b/apps/www/pages/blog/tags/[tag].tsx@@ -1,6 +1,7 @@import { NextSeo } from 'next-seo'import { getSortedPosts, getAllTags } from '~/lib/posts'import Link from 'next/link'+import { startCase } from 'lodash'import DefaultLayout from '~/components/Layouts/Default'import BlogListItem from '~/components/Blog/BlogListItem'@@ -31,16 +32,21 @@ interface Props {function TagBlogsPage(props: Props) {const { blogs, tag } = props+ const capitalizedTag = startCase(tag.replaceAll('-', ' '))+return (<>- <NextSeo title={`Blog | ${tag}`} description="Latest news from the Supabase team." />+ <NextSeo+ title={`Blog | ${capitalizedTag}`}+ description="Latest news from the Supabase team."+ /><DefaultLayout><div className="container mx-auto px-8 py-16 sm:px-16 xl:px-20"><div className="text-scale-1000 flex space-x-1"><h1 className="cursor-pointer"><Link href="/blog">Blog</Link><span className="px-2">/</span>- <span>{`${tag}`}</span>+ <span>{`${capitalizedTag}`}</span></h1></div><ol className="grid grid-cols-12 gap-8 py-16 lg:gap-16">