https://github.com/royalfig/ghost-theme-starter
A starter template for creating a custom Ghost theme
https://github.com/royalfig/ghost-theme-starter
ghost ghost-theme
Last synced: 4 months ago
JSON representation
A starter template for creating a custom Ghost theme
- Host: GitHub
- URL: https://github.com/royalfig/ghost-theme-starter
- Owner: royalfig
- Archived: true
- Created: 2021-12-30T19:36:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-18T21:14:23.000Z (almost 3 years ago)
- Last Synced: 2025-02-11T14:24:10.242Z (over 1 year ago)
- Topics: ghost, ghost-theme
- Language: JavaScript
- Homepage:
- Size: 313 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ghost Starter Theme
- To get started, click `Use this template` and clone the repo
- CD into the directory
```bash
npm install
```
- Make a symlink from the theme directory to your local install of Ghost's themes folder
``` bash
# /content/themes
ln -s ~/your-theme-folder .
```
- Restart ghost (`ghost restart`)
## Dev Script
```bash
# Start the live reload server and compile your JS/CSS assets, and watch for changes
npm run dev
```
If your site isn't refreshing, you'll likely need to disable your browser's caching. Go to the Network tab in your dev tools and toggle "Disable cache".
## Production Scripts
```bash
# Fix any CSS issues, compile your JS/CSS assets for production, and create a ZIP file
npm run zip
# Scan your theme for potential incompatibilties with gscan
npm run check
```