The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: multiple authors on blog
Isaiah Hamilton7c3aeacc38a1
diff --git a/www/components/Blog/BlogListItem.tsx b/www/components/Blog/BlogListItem.tsxindex dfb775284fa..1b08ae3c406 100644--- a/www/components/Blog/BlogListItem.tsx+++ b/www/components/Blog/BlogListItem.tsx@@ -51,19 +51,20 @@ const BlogListItem = ({ post }: Props) => {{post.date && <p className="text-xs text-scale-1100">{post.date}</p>}<p className="text-base text-scale-1100 max-w-sm">{post.description}</p></div>- {author.map((author: any) => {- return (- <div className="flex items-center">- {author.author_image_url && (- <img src={author.author_image_url} className="rounded-full w-10 mr-4" />- )}- <div className="flex flex-col">- <span className="text-sm m-0 text-scale-1200">{author.author}</span>- <span className="text-xs m-0 text-scale-900">{author.position}</span>+ <div className="flex items-center -space-x-2">+ {author.map((author: any) => {+ return (+ <div>+ {author.author_image_url && (+ <img+ src={author.author_image_url}+ className="rounded-full w-10 ring-2 ring-white dark:ring-scale-200"+ />+ )}</div>- </div>- )- })}+ )+ })}+ </div></div></div></a>diff --git a/www/pages/blog.tsx b/www/pages/blog.tsxindex 04aff41873e..f11fc03261a 100644--- a/www/pages/blog.tsx+++ b/www/pages/blog.tsx@@ -138,7 +138,7 @@ function FeaturedThumb(blog: PostTypes) {for (let i = 0; i < authorArray.length; i++) {// @ts-ignoreauthor.push(- authors.find((authors: string) => {+ authors.find((authors: any) => {// @ts-ignorereturn authors.author_id === authorArray[i]})