Manual Install
@matthiesenxyz/ astro-ghostcms
Install
The Best way to install Astro-GhostCMS is from a fresh install. To get started run the following depending on your package manager of choice.
-
First create a new Astro install with the following command. Then delete the entire
/pages
folder under/src/
: -
Then run the following to install the package!
-
Then set your
.env
variables to look like this: -
Then set your
astro.config.mjs
to look like this: -
This is how your file structure should look:
Directoryyour-awesome-project/
Directorypublic/
- …
Directorysrc/
- …
- .env
- astro.config.mjs
- package.json
-
Then run the following to start your Astro server:
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 |