Skip to content

@studiocms/blog

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.

  1. Install the package using the following command:

    Terminal window
    npm i @studiocms/blog
  2. 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(),
    ],
    });

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.