@studiocms/blog
Introduction
'Read the “', Introduction, '” section'This plugin enables the StudioCMS Blog features as well as a frontend in your Astro project. It will allow you to create, edit, and delete blog posts from the StudioCMS dashboard.
Installation
'Read the “', Installation, '” section'-
Install the package using the following command:
Terminal window npm i @studiocms/blogTerminal window pnpm add @studiocms/blogTerminal window yarn add @studiocms/blog -
Add
@studiocms/blog
to your Astro config file:studiocms.config.mjs import { defineStudioCMSConfig } from 'studiocms/config';import blog from '@studiocms/blog';export default defineStudioCMSConfig({plugins: [blog(),],});
What does this plugin do?
'Read the “', What does this plugin do?, '” section'This integration will add the following new routes to your StudioCMS-controlled front-end:
/[...slug]
- The main blog page that lists all StudioCMS Pages./blog
- The main blog page that lists all blog posts./blog/[slug]
- The individual blog post page./rss.xml
- The RSS feed for your blog posts.