back
Public blog: anyone can write, Medium-style editor
1.1.0Oct 17, 2026NEWBLOG
The blog is open to all logged-in users. Create content via the `/write` page using a Medium-style editor; upon publishing, you will be redirected directly to the article.
Highlights
- • Medium-style '/write' page: large title, subtitle, optional cover image, 'Tell your story' prompt, and a circular toolbar (for images, video embeds, code blocks, dividers, and headings).
- • POST /api/blog/create endpoint with Bearer token verification; automatically generates a unique slug, with 'author_name' pulled from 'porto_profiles'.
- • Publishing an article triggers an immediate redirect to the newly created post at '/blog/[slug]'.
- • Includes a 'Write' button on the blog page; the '/write' route is added to the sitemap.
- • Database migration for 'public_blog_write': includes an 'author_id' column; RLS (Row-Level Security) policy restricts public read access to articles where 'is_published' is true.
Monorepo
- • Root 'npm dev'/'npm start' commands now launch both 'porto-admin' (port 5173) and 'porto-yudhi-v1' simultaneously using 'concurrently'.