Skip to content

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

chore: fix images

Jonathan Summers-Muird069a259eb99
diff --git a/www/_blog/2021-03-08-toad-a-link-shorterner-with-simple-apis-for-low-coders.mdx b/www/_blog/2021-03-08-toad-a-link-shorterner-with-simple-apis-for-low-coders.mdx
index 56510601922..f5910d56f8a 100644
--- a/www/_blog/2021-03-08-toad-a-link-shorterner-with-simple-apis-for-low-coders.mdx
+++ b/www/_blog/2021-03-08-toad-a-link-shorterner-with-simple-apis-for-low-coders.mdx
@@ -6,7 +6,8 @@ author_title: Supabase
author_url: https://github.com/roryw10
author_image_url: https://github.com/roryw10.png
authorURL: https://github.com/roryw10
-image: /toadli-og.png
+image: toadli-og.jpg
+thumb: toadli-website.jpg
tags:
- supabase
- case-study
diff --git a/www/_blog/2021-03-11-using-supabase-replit.mdx b/www/_blog/2021-03-11-using-supabase-replit.mdx
index 9648900267b..63e08a1b51e 100644
--- a/www/_blog/2021-03-11-using-supabase-replit.mdx
+++ b/www/_blog/2021-03-11-using-supabase-replit.mdx
@@ -6,7 +6,7 @@ author_title: Supabase
author_url: https://github.com/awalias
author_image_url: https://github.com/awalias.png
authorURL: https://github.com/awalias
-image: /img/blog/replit-og.jpg
+image: replit-og.jpg
tags:
- Replit
- node-js
diff --git a/www/pages/blog/[slug].tsx b/www/pages/blog/[slug].tsx
index 9661cddfab6..ca85adf9140 100644
--- a/www/pages/blog/[slug].tsx
+++ b/www/pages/blog/[slug].tsx
@@ -32,7 +32,6 @@ const components = {
// plugins for next-mdx-remote
const gfm = require('remark-gfm')
const slug = require('rehype-slug')
-const highlight = require('remark-highlight.js')
// table of contents extractor
const toc = require('markdown-toc')
@@ -216,14 +215,16 @@ function BlogPostPage(props: any) {
return <Badge key={`categroy-badge-${tag}`}>{tag}</Badge>
})}
</Space>
- <div>
- <Typography.Title level={5}>Table of contents</Typography.Title>
- <Typography>
- <div className={blogStyles['toc']}>
- <ReactMarkdown plugins={[gfm]}>{props.blog.toc.content}</ReactMarkdown>
- </div>
- </Typography>
- </div>
+ {props.blog.toc && (
+ <div>
+ <Typography.Title level={5}>Table of contents</Typography.Title>
+ <Typography>
+ <div className={blogStyles['toc']}>
+ <ReactMarkdown plugins={[gfm]}>{props.blog.toc.content}</ReactMarkdown>
+ </div>
+ </Typography>
+ </div>
+ )}
<div>
<Typography.Title className="mb-4" level={5}>
Related articles
diff --git a/web/static/img/blog/replit-og.jpg b/www/public/images/blog/replit-og.jpg
similarity index 100%
rename from web/static/img/blog/replit-og.jpg
rename to www/public/images/blog/replit-og.jpg