Skip to content

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

chore: update blog page, remove old Head component

Jonathan Summers-Muir2e7b6dfdc368
diff --git a/www/pages/blog.tsx b/www/pages/blog.tsx
index c2d49c5806a..86c109d9e32 100644
--- a/www/pages/blog.tsx
+++ b/www/pages/blog.tsx
@@ -2,7 +2,6 @@ import fs from 'fs'
import { useEffect, useState } from 'react'
import { useRouter } from 'next/router'
-import Head from 'next/head'
import { NextSeo } from 'next-seo'
import { generateRss } from '~/lib/rss'
@@ -36,7 +35,7 @@ function Blog(props: any) {
const [category, setCategory] = useState('all')
const [blogs, setBlogs] = useState(props.blogs)
- const { basePath } = useRouter()
+ const router = useRouter()
useEffect(() => {
// Update the document title using the browser API
@@ -50,7 +49,7 @@ function Blog(props: any) {
)
}, [category])
- const meta_title = 'Blog | Supabase'
+ const meta_title = 'Supabase Blog: Open Source Firebase alternative Blog'
const meta_description = 'Get all your Supabase News on the Supabase blog.'
return (
@@ -61,23 +60,21 @@ function Blog(props: any) {
openGraph={{
title: meta_title,
description: meta_description,
- url: `https://supabase.com/auth`,
+ url: `https://supabase.com/${router.pathname}`,
images: [
{
- url: `https://supabase.com${basePath}/images/product/database/database-og.jpg`,
+ url: `https://supabase.com/images/og/og-image.jpg`,
},
],
}}
+ additionalLinkTags={[
+ {
+ rel: 'alternate',
+ type: 'application/rss+xml',
+ href: `https://supabase.com/rss.xml`,
+ },
+ ]}
/>
- <Head>
- <link
- rel="alternate"
- type="application/rss+xml"
- title="RSS feed for blog posts"
- href={`${basePath}/rss.xml`}
- />
- </Head>
- <NextSeo title="Blog" description="Latest news from the Supabase team." />
<DefaultLayout>
<BlogHeader title="Blog" />
<div className="bg-gray-50 dark:bg-dark-800 overflow-hidden py-12">