Astro-GhostCMS Demo

Author: Adam Matthiesen

1 min read

Quick Start

Quick Start
Astro minimum Version: Astro v4.0
For an always up to date version of this please check our [Docs]

Astro Integration Mode

In this mode, the addon will not be just an API, but will be a full Route takeover, there is plans to add more themes in time, but for now there is only the base Casper theme based on Ghost's main Theme.

Astro Add Installation

Dont forget to set your environment Variables!

You must also create 2 environment variables in a .env file with the following:

Manual Installation

npm i @matthiesenxyz/astro-ghostcms

Then set your astro.config.ts to look like this:

Dont forget to set your environment Variables!

You must also create 2 environment variables in a .env file with the following:

When you deploy your install dont forget to set the above ENVIRONMENT VARIABLES!

Created Routes

The routes are the same as a standard Ghost Blog so you can migrate to Astro easily.

Route Content
/ Homepage with recents/features Blog Posts
/404 404 Page
/[slug] Post or Page
/author/[slug] Author page with related posts
/authors All the authors
/tag[slug] Tag page with related posts
/tags All the tags
/archives/[...page] All the posts, paginated
/rss.xml All the posts, in a FEED

Recent Blogposts

  • New: Featured post will display on homepage!

    Easily migrate your Ghost site to Astro

    This is to demonstrate that the most recent post marked as featured will be displayed on your home page! ( THIS WILL ONLY WORK WITH THEMES THAT SUPPORT THIS FEATURE | Currently Supported only on the Catppuccin Theme ) This is a new feature to help those who want a "landing page" setup since ghost doesn't have this built in, we found a way around this issue! "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad min

  • Manual Install (DIY Mode)

    <span style="white-space: pre-wrap;">Photo by </span><a href="https://unsplash.com/@polhow?utm_source=ghost&amp;utm_medium=referral&amp;utm_campaign=api-credit"><span style="white-space: pre-wrap;">Pablo Gentile</span></a><span style="white-space: pre-wrap;"> / </span><a href="https://unsplash.com/?utm_source=ghost&amp;utm_medium=referral&amp;utm_campaign=api-credit"><span style="white-space: pre-wrap;">Unsplash</span></a>

    In this mode the integration will not deploy routes at all. you will have to build your own website to utilize the exported functions listed below. npm i @matthiesenxyz/astro-ghostcms This is not finished as this is a demo, please refer to the Docs

  • Quick Start

    Quick Start

    Astro-GhostCMS Quick Start Guide - If your new start here