Populating a Ghost theme with demo content
user: When I was browsing the ghost.org website looking at the various themes, I noticed the couple themes have content in them in a layout and I was just wondering is there any way to populate the webpage with the demo content and layout because all I’m getting right now on a default. Install is just an empty blank template that really doesn’t represent or look like the demo Theme pages. Do you know what I mean?
assistant: Yes, I absolutely know what you mean.
When you install a theme on a fresh Ghost CMS instance, it doesn't come with the **demo content or layout** that you see in the theme preview on [Ghost.org](https://ghost.org/marketplace/). The themes often look empty or plain until you manually create **posts**, **tags**, **navigation**, and sometimes **custom pages** to match the intended layout.
### Here’s how to make your Ghost site look like the demo:
#### 1. **Check if the Theme Includes Demo Content Files**
Many premium or open-source Ghost themes include:
- `routes.yaml` (for custom page routing and collections)
- Markdown files or JSON files with example posts/pages
- Instructions in a README
Look inside the theme zip or GitHub repo for a `routes.yaml` and follow these steps:
**How to apply a custom `routes.yaml`:**
1. Go to **Settings → Labs** in the Ghost Admin.
2. Under **Custom Routes**, click "Upload routes YAML".
3. Upload the `routes.yaml` from the theme package.
#### 2. **Import Demo Content (if provided)**
Some theme authors include a `.json` file that contains demo content.
**To import:**
- Go to **Settings → Labs**
- Click **"Import content"** and upload the `.json` file
This will auto-create posts, pages, and tags that match the demo.
#### 3. **Mimic the Demo Manually (if no files are provided)**
If no demo content is included:
- Study the [demo site](https://ghost.org/marketplace/) carefully
- Recreate each section using Ghost’s editor:
- Use **pages** for static content (like "About" or "Pricing")
- Use **tags** to group posts for theme-specific filtering
- Use **custom HTML cards** or code injection when needed
#### 4. **Configure Navigation**
Themes often rely on the right navigation setup.
**Go to:**
**Settings → Navigation**, and configure links like:
- Home
- Blog
- About
- Tags (e.g., `/tag/news/`)
#### 5. **Enable Required Integrations or Features**
Some themes use Ghost's newer features like **members**, **tiers**, or **custom t…
user: I currently using Casper, but I’m curious what is the theme that is default on ghost I forget the name
assistant: You're using **Casper**, which is also the **default theme** that ships with Ghost—so you're already on it.
Casper is the official Ghost theme maintained by the Ghost team. It's clean, minimalist, and designed to showcase basic blog functionality with support for memberships, featured posts, and tags. But it **doesn't include demo content** by default, so when you install it on a fresh Ghost instance, it looks very bare.
If you're seeing a blank or empty site:
- That’s normal—it needs content (posts, pages, and tags) added manually.
- You can enhance it with **custom routes**, **featured posts**, and **tag-based filtering**.
If you'd like, I can:
- Give you a sample `routes.yaml` that mirrors the Casper demo
- Or help you populate your Casper site with content and a homepage layout similar to the [Ghost demo blog](https://demo.ghost.io)
Would you like help creating a starting layout and content set for Casper?
user: Now I remember the name the default theme is source. Actually, the Casper is not the default theme, just letting you know.
assistant: You're absolutely right — and thank you for the correction.
As of **Ghost 5.x and newer**, the default theme is indeed **Source**, not Casper. **Source** replaced **Casper** as the new starter theme for modern Ghost installs, especially when using the full membership and newsletter features.
Here’s the breakdown:
- **Casper** is still maintained and widely used — it's the original official theme and still bundled, but it's no longer the default on **new Ghost installs**.
- **Source** is the newer default and is designed more like a **website template** than a blog, with support for landing pages, pricing, membership tiers, and modern design layouts.
### Important distinction:
- **Casper** = classic blog style
- **Source** = modern homepage + inner pages structure (like marketing sites)
Would you like help setting up **Source** with its intended layout and content? I can walk you through how to populate it so it looks like [its demo](https://source.ghost.io/), including routing and pages.
user: So actually source theme I’ll be interested to know about the demo layout, custom demo content
assistant: Perfect — the **Source theme** is a great choice if you're building a more modern, site-style layout with landing pages, pricing, and memberships. But out of the box, it can look quite empty unless you mimic the demo content and layout.
Here’s how to **recreate the Source demo layout** on your Ghost site:
---
### **1. Download the Source Theme**
If you haven't already, get it from:
**[Source theme on GitHub](https://github.com/TryGhost/Source)**
Or from your Ghost admin under **Design → Change theme** → Install **Source**.
---
### **2. Upload the Sample `routes.yaml`**
The Source theme uses custom routing to display a homepage layout like the demo (with a pricing table, testimonials, etc.).
**Steps:**
1. Go to your Ghost Admin → **Settings → Labs**
2. Under **Custom Routes**, click “Upload routes YAML”
3. Upload the sample file from the Source theme repo:
[source/routes.yaml](https://github.com/TryGhost/Source/blob/main/routes.yaml)
> This file sets up:
> - `/` → `home` page (instead of latest posts)
> - `/pricing/`, `/about/`, etc.
---
### **3. Add the Required Static Pages**
To match the demo, create the following pages in Ghost Admin:
| **Page Title** | **URL Slug** | **Template** |
|----------------|--------------|--------------|
| Home | `/` | `home` |
| About | `/about/` | `about` |
| Pricing | `/pricing/` | `pricing` |
| Contact | `/contact/` | `contact` |
**Steps:**
- Go to **Pages** → **New Page**
- Title it "Home"
- Leave it mostly empty (you can add an intro)
- Click the **gear icon** in the top-right corner
- Set **Template** to `home`
- Save & publish
Repeat for the others, assigning the correct template each time.
---
### **4. Populate Posts and Tags (Optional)**
To showcase your blog posts or featured articles:
- Create a few **posts** and tag them with `#featured`
- Source can highlight featured posts in sections if you modify the theme or extend the `home.hbs`
--…
user: Yeah, sure if you could do that I’m curious to see what you give me
assistant: Here’s your custom demo content pack for the **Source** Ghost theme:
**Download:** [ghost-source-demo-content.zip](sandbox:/mnt/data/ghost_source_demo/ghost-source-demo-content.zip)
It includes Markdown files for:
- `home.md`
- `about.md`
- `pricing.md`
- `contact.md`
You can copy the content from each file into the corresponding **Page** in your Ghost Admin. Let me know if you'd like this expanded with blog posts or additional sections like testimonials or FAQs.
user: Actually, I would like an expanded with all three of those things you mentioned
assistant: Here’s your **expanded Ghost Source demo content pack**:
**Download:** [ghost-source-demo-content.zip](sandbox:/mnt/data/ghost_source_demo/ghost-source-demo-content.zip)
### Included:
- **Pages:**
- `home.md`
- `about.md`
- `pricing.md`
- `contact.md`
- `testimonials.md`
- `faq.md`
- **Blog Posts:**
- `post-hello-world.md`
- `post-behind-the-scenes.md`
- `post-ghost-tips.md`
Each file contains ready-to-paste Markdown content. You can copy it directly into the Ghost Admin's editor when creating new posts or pages.
Want me to help you wire up the routes or design suggestions for integrating testimonials and FAQs into the homepage?
user: No thanks next I’d like to talk about something else.
As you recall last week, we installed ghost on my laptop and we used SQLite. Same version of ghost running on my server, but I started thinking that maybe I would like to develop the site on my laptop and I was just wondering maybe we should’ve picked my SQL database on my laptop because maybe it’ll be easier to synchronize between my laptop and the server right now. I just don’t know how to go about this issue and if that’s a problem at all or maybe it’s not but if you could elaborate onwhat is the recommended method for synchronization of the database of a live site and how I should go about doing this
assistant: Great pivot — and yes, I remember we installed Ghost locally using **SQLite** and your production server is running **MySQL** (MariaDB-compatible). This difference matters **if** you plan to sync or migrate data between your local dev and the live site.
Let’s break this down:
---
## **1. Should You Use MySQL Locally Instead of SQLite?**
**If your goal is to sync or push/pull content between laptop and server**, then **yes**, it's **better to use the same database engine** (MySQL) in both places.
SQLite is lightweight and great for isolated local dev — but it's:
- **Not easily syncable** with MySQL
- Missing certain features (like concurrent access, fine-grained schema control)
**Switching to MySQL locally means:**
- Schema is identical
- Easier to export/import content (via SQL or Ghost tools)
- You can test real-world production behavior
---
## **2. Recommended Sync Methods Between Local & Server**
### Option A: **Use Ghost's Export/Import Tools (Content Only)**
- Export from Ghost Admin → **Settings → Labs → Export**
- Creates a `.json` file with posts, tags, users, settings (but no images)
- Import this file into another Ghost instance
**Limitations:**
- Does **not include images**, themes, or full DB
- Can’t do differential syncing — only snapshot style
Best for **occasional one-way pushes**, like:
- "Push new blog content from dev to live"
- "Pull content down from live to dev to test changes"
---
### Option B: **Use MySQL Dump for Full DB Sync**
If you switch your local Ghost to MySQL:
**To sync from local → server:**
```bash
mysqldump -u ghost_user -p ghost_local_db > dev_dump.sql
scp dev_dump.sql user@server:/tmp/
ssh user@server
mysql -u ghost_user -p ghost_prod_db < /tmp/dev_dump.sql
```
Or reverse the process from server → local.
**Note:** You’ll want to avoid syncing:
- User credentials (optional)
- Email settings or secrets
- Timestamps that break ordering
You can sanitize dumps or exclude certain tables as needed.
---
### Option C: **…
user: OK, well first to start with then I absolutely want my SQL installed on my laptop. Do we basically need to wipe everything and redo a fresh install of ghost or is there another method to switch databases?
assistant: Great — let’s get MySQL running on your laptop and migrate Ghost to use it.
**Good news:**
**You don’t need to fully wipe everything** or reinstall Ghost. You can **switch Ghost from SQLite to MySQL** by doing a clean DB setup and editing `config.production.json` (or `config.development.json`, depending on what mode you’re running).
---
## **Step-by-Step: Switch Ghost to MySQL on Your Laptop**
### **Step 1: Install MySQL (if not installed)**
```bash
sudo apt update
sudo apt install mysql-server
```
Secure it (optional but recommended):
```bash
sudo mysql_secure_installation
```
---
### **Step 2: Create a MySQL Database & User for Ghost**
Login to MySQL:
```bash
sudo mysql -u root -p
```
In the MySQL shell:
```sql
CREATE DATABASE ghost_local;
CREATE USER 'ghost'@'localhost' IDENTIFIED BY 'yourStrongPassword';
GRANT ALL PRIVILEGES ON ghost_local.* TO 'ghost'@'localhost';
FLUSH PRIVILEGES;
EXIT;
```
---
### **Step 3: Stop Ghost**
From your Ghost install directory (e.g. `~/ghost`):
```bash
ghost stop
```
---
### **Step 4: Update Ghost’s Config File**
Edit `config.development.json` (or `config.production.json` if you're running in production mode):
```bash
nano config.development.json
```
Find this:
```json
"database": {
"client": "sqlite3",
"connection": {
"filename": "content/data/ghost-dev.db"
}
}
```
Replace with:
```json
"database": {
"client": "mysql",
"connection": {
"host": "localhost",
"user": "ghost",
"password": "yourStrongPassword",
"database": "ghost_local"
}
}
```
Save and exit (`Ctrl+O`, `Enter`, then `Ctrl+X`).
---
### **Step 5: Reinitialize the Database**
Ghost won’t auto-migrate your old SQLite data, so you’ll need to:
1. Either **start fresh** (it will auto-create the schema)
2. Or **export from SQLite** and **import to MySQL** manually (advanced)
To start clean:
```bash
ghost start
```
Ghost will detect the new MySQL DB is empty and auto-initialize it.
---
### **Step 6: (Optional) Re-Import Conte…
Showing first 16 of 20 messages. View the full conversation at https://mcwai.org/ai-conversation/populating-ghost-theme-with-demo-content