blogEnabled
flag in the appConfig.tsx
file.
tsx web/appConfig.tsx
Adding a new blog post
To add a new blog post, create a new entity in theblog_posts
table in Supabase.
- The
title
field is used as the title and headline of the blog post. - The
slug
field is used to generate the URL. - The
language
field is used to filter the blog posts by language. Add the language code (e.g.en
for English) to the field. - The
description
field is used as the meta description of the blog post and is displayed below the title and in the blog overview. - The
content
field is used as the content of the blog post. It supports markdown and code highlighting. Edit theweb/components/blog/mdx-content.tsx
file to customize the rendering. - The
cover_image
field is used as the cover image of the blog post. It is displayed at the top of the blog content and in the blog overview.
If there are no blog posts available in the chosen language, the blog page will display the english version as a fallback, displaying a notice.