Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'master' into fs/blog-post-updates

Francesco Sansalvadore1bbbe88f87f7
diff --cc apps/www/pages/blog/[slug].tsx
index 844638be517,779b9426272..e76cb53f86c
--- a/apps/www/pages/blog/[slug].tsx
+++ b/apps/www/pages/blog/[slug].tsx
@@@ -2,17 -6,11 +2,17 @@@ import { NextSeo } from 'next-seo
import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router'
-import ReactMarkdown from 'react-markdown'
+import matter from 'gray-matter'
+import authors from 'lib/authors.json'
+import { MDXRemote } from 'next-mdx-remote'
+import { Badge, Divider, IconChevronLeft } from 'ui'
+
import CTABanner from '~/components/CTABanner'
import DefaultLayout from '~/components/Layouts/Default'
-
+ import BlogLinks from '~/components/LaunchWeek/7/BlogLinks'
import { generateReadingTime } from '~/lib/helpers'
+import ShareArticleActions from '~/components/Blog/ShareArticleActions'
+import useActiveAnchors from '~/hooks/useActiveAnchors'
import mdxComponents from '~/lib/mdx/mdxComponents'
import { mdxSerialize } from '~/lib/mdx/mdxSerialize'
import { getAllPostSlugs, getPostdata, getSortedPosts } from '~/lib/posts'
@@@ -68,7 -65,7 +68,8 @@@ export async function getStaticProps({
function BlogPostPage(props: any) {
const content = props.blog.content
const authorArray = props.blog.author.split(',')
+ useActiveAnchors('h2, h3, h4')
+ const isLaunchWeek7 = props.blog.launchweek === 7
const author = []
for (let i = 0; i < authorArray.length; i++) {
@@@ -271,7 -266,8 +272,8 @@@
<MDXRemote {...content} components={mdxComponents()} />
</div>
</article>
+ {isLaunchWeek7 && <BlogLinks />}
- <div className="py-16">
+ <div className="block lg:hidden py-8">
<div className="text-scale-900 dark:text-scale-1000 text-sm">
Share this article
</div>