Manual Install
@matthiesenxyz/ astro-ghostcms-brutalbyelian
Demo Live Demo of BrutalbyElian Theme
Install
# For fresh Installnpm create astro@latest# Create Empty Install with standard typescript# Then Delete entire `pages` folder under `/src/`
Then run the following:
npx astro add @matthiesenxyz/astro-ghostcms
npm install @matthiesenxyz/astro-ghostcms-brutalbyelian @unocss/astro @unocss/reset postcss unocss
# For fresh Installpnpm create astro@latest# Create Empty Install with standard typescript# Then Delete entire `pages` folder under `/src/`
Then run the following:
pnpm astro add @matthiesenxyz/astro-ghostcms
pnpm add @matthiesenxyz/astro-ghostcms-brutalbyelian @unocss/astro @unocss/reset postcss unocss
# For fresh Installyarn create astro@latest# Create Empty Install with standard typescript# Then Delete entire `pages` folder under `/src/`
Then run the following:
yarn astro add @matthiesenxyz/astro-ghostcms
yarn add@matthiesenxyz/astro-ghostcms-brutalbyelian @unocss/astro @unocss/reset postcss unocss
Then set your astro.config.ts
to look like this:
import { defineConfig } from "astro/config";import ghostcms from "@matthiesenxyz/astro-ghostcms";import UnoCSS from 'unocss/astro';
// https://astro.build/configexport default defineConfig({ site: "https://YOURDOMAINHERE.com/", trailingSlash: 'ignore', integrations: [ UnoCSS({ injectReset: true }), ghostcms({ theme: "@matthiesenxyz/astro-ghostcms-catppuccin", ghostURL: "https://ghostdemo.matthiesen.xyz", }) ],});
Setup UnoCSS
import brutalTheme from '@matthiesenxyz/astro-ghostcms-brutalbyelian';import { defineConfig } from 'unocss';
export default defineConfig({ presets: [ brutalTheme() ],});
Setup .env
variables
CONTENT_API_KEY=a33da3965a3a9fb2c6b3f63b48
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 |