From 7e03ae76ad5fb21ad0cc85d4eaa68a708a66c41b Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Wed, 10 Aug 2022 10:21:05 -0300 Subject: [PATCH] fix: issue with blog urls --- apps/www/_alternatives/supabase-vs-firebase.mdx | 4 +--- apps/www/_alternatives/supabase-vs-heroku-postgres.mdx | 2 -- apps/www/layouts/comparison.tsx | 2 +- apps/www/pages/alternatives/[slug].tsx | 2 +- apps/www/pages/blog.tsx | 5 +---- apps/www/pages/blog/[slug].tsx | 4 +++- apps/www/public/rss.xml | 2 +- 7 files changed, 8 insertions(+), 13 deletions(-) diff --git a/apps/www/_alternatives/supabase-vs-firebase.mdx b/apps/www/_alternatives/supabase-vs-firebase.mdx index 893233e3517..20355efa97a 100644 --- a/apps/www/_alternatives/supabase-vs-firebase.mdx +++ b/apps/www/_alternatives/supabase-vs-firebase.mdx @@ -2,8 +2,6 @@ title: Supabase vs Firebase description: Supabase is an Open Source Firebase Alternative with a SQL based Database, Auth, and Cloud Functions author: ant_wilson -image: partner-gallery/partner-showcase-thumb.png -thumb: partner-gallery/partner-showcase-thumb.png tags: - comparison date: '2022-05-26' @@ -44,7 +42,7 @@ Both Firebase and Supabase have invested heavily in client side libraries so you ## How are they different? -Firebase and Supabase differ in several ways. The main one being that Firebase is a document store, whereas Supabase is based on PostgreSQL - a relational, SQL-based database management system. +Firebase and Supabase differ in several ways. The main one being that Firebase is a document store, whereas Supabase is based on PostgreSQL - a relational, SQL-based database management system. There are some other important differences. diff --git a/apps/www/_alternatives/supabase-vs-heroku-postgres.mdx b/apps/www/_alternatives/supabase-vs-heroku-postgres.mdx index 50fadb5b16c..b1fa67553dc 100644 --- a/apps/www/_alternatives/supabase-vs-heroku-postgres.mdx +++ b/apps/www/_alternatives/supabase-vs-heroku-postgres.mdx @@ -2,8 +2,6 @@ title: Supabase vs Heroku Postgres description: Supabase is an alternative to Heroku Postgres with Enterprise Grade Support available author: ant_wilson -image: partner-gallery/partner-showcase-thumb.png -thumb: partner-gallery/partner-showcase-thumb.png tags: - comparison date: '2022-05-26' diff --git a/apps/www/layouts/comparison.tsx b/apps/www/layouts/comparison.tsx index 65dd6b61d72..8146f6b4d80 100644 --- a/apps/www/layouts/comparison.tsx +++ b/apps/www/layouts/comparison.tsx @@ -64,7 +64,7 @@ const LayoutComparison = ({ components, props, gfm, slug }: Props) => { openGraph={{ title: props.blog.title, description: props.blog.description, - url: `https://supabase.com/blog/${props.blog.slug}`, + url: `https://supabase.com/alternatives/${props.blog.slug}`, type: 'article', article: { // diff --git a/apps/www/pages/alternatives/[slug].tsx b/apps/www/pages/alternatives/[slug].tsx index ff08d81f396..6ee4340fa47 100644 --- a/apps/www/pages/alternatives/[slug].tsx +++ b/apps/www/pages/alternatives/[slug].tsx @@ -70,7 +70,7 @@ export async function getStaticProps({ params }: any) { nextPost: currentIndex === allPosts.length ? null : nextPost ? nextPost : null, relatedPosts, blog: { - slug: `${params.year}/${params.month}/${params.day}/${params.slug}`, + slug: `${params.slug}`, content: mdxSource, ...data, toc: toc(content, { maxdepth: data.toc_depth ? data.toc_depth : 2 }), diff --git a/apps/www/pages/blog.tsx b/apps/www/pages/blog.tsx index 77040dfafd2..1276cfae372 100644 --- a/apps/www/pages/blog.tsx +++ b/apps/www/pages/blog.tsx @@ -104,10 +104,7 @@ function Blog(props: any) {
{props.categories.map((categoryId: string) => ( - - {/*

{categoryId}

*/} - <> -
+ ))}
diff --git a/apps/www/pages/blog/[slug].tsx b/apps/www/pages/blog/[slug].tsx index 9c05e24c8d1..e7589fe4c26 100644 --- a/apps/www/pages/blog/[slug].tsx +++ b/apps/www/pages/blog/[slug].tsx @@ -100,7 +100,7 @@ export async function getStaticProps({ params }: any) { nextPost: currentIndex === allPosts.length ? null : nextPost ? nextPost : null, relatedPosts, blog: { - slug: `${params.year}/${params.month}/${params.day}/${params.slug}`, + slug: `${params.slug}`, content: mdxSource, ...data, toc: toc(content, { maxdepth: data.toc_depth ? data.toc_depth : 2 }), @@ -181,6 +181,7 @@ function BlogPostPage(props: any) { description: props.blog.description, url: `https://supabase.com/blog/${props.blog.slug}`, type: 'article', + article: { // // to do: add expiration and modified dates @@ -199,6 +200,7 @@ function BlogPostPage(props: any) { url: `https://supabase.com${basePath}/images/blog/${ props.blog.image ? props.blog.image : props.blog.thumb }`, + alt: `${props.blog.title} thumbnail`, }, ], }} diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xml index f5333d175a5..d84e6214071 100644 --- a/apps/www/public/rss.xml +++ b/apps/www/public/rss.xml @@ -11,7 +11,7 @@ https://supabase.com/blog/slack-consolidate-slackbot-to-consolidate-messages Slack Consolidate: a slackbot built with Python and Supabase https://supabase.com/blog/slack-consolidate-slackbot-to-consolidate-messages - Different approaches for tracking visitor counts with PostgreSQL. + A slackbot to consolidate messages from different channels using Supabase, Slack SDK and Python Mon, 08 Aug 2022 03:03:00