# Content guide. The Small Business MBA

All lessons live here as markdown, then `npm run import` loads them into the database. Re-running the import is safe; it updates by slug.

## Folder structure

```
content/
  pillars.json                 group definitions (4 core pillars + 10 bonus courses)
  foundation/                  Pillar 1 lessons        (core)
  market-and-revenue/          Pillar 2 lessons        (core)
  operations-and-systems/      Pillar 3 lessons        (core)
  scale-and-exit/              Pillar 4 lessons        (core)
  lead-generation/             Course 1 lessons        (bonus)
  customer-profiling/          Course 2 lessons        (bonus)
  pitch-development/           Course 3 lessons        (bonus)
  ai-automations/              Course 4 lessons        (bonus)
  landing-page-strategies/     Course 5 lessons        (bonus)
  business-blueprint/          Course 6 lessons        (bonus)
  marketing-architecture/      Course 7 lessons        (bonus)
  financial-command/           Course 8 lessons        (bonus)
  ops-blueprint/               Course 9 lessons        (bonus)
  social-systems/              Course 10 lessons       (bonus)
```

The folder name must match a pillar `slug` in `pillars.json`. One markdown file per lesson. Name files with a numeric prefix so they sort: `01-...md`, `02-...md`.

## Lesson file format

```
---
title: The Lead Generation Mindset Shift
summary: Why most lead generation advice fails, and the system that fixes it.
est_minutes: 15
free_preview: true
sort: 1
video_url: https://iframe.mediadelivery.net/embed/...   (optional, e.g. the Hedra intro)
---

## A heading

Body text in markdown. Bold with **like this**, bullets with - or the arrow bullet,
numbered lists with 1. and so on.
```

Frontmatter keys (all optional except title): `summary`, `est_minutes`, `free_preview` (true marks it viewable without a membership, good for the funnel), `published` (false to hide), `sort`, `video_url`, `slug` (defaults to the filename without its number prefix).

## What the importer does automatically

- Converts markdown to clean semantic HTML.
- Strips em dashes (brand rule) and normalizes Google-Docs heading wrappers.
- Renders everything through the member app's single `.lesson-doc` stylesheet, so every lesson, core or bonus, matches the exact site brand (Cormorant headings, Barlow body, gold on near-black). Brand consistency is structural, not per-course work.

## Source mapping (where content comes from)

- **Core Pillars 2, 3, 4:** local at `0 - Website/Operator Academy Curriculum/`. Use each module's `3_Video_Script.md` for the body and `2_Page_Copy_Kajabi.md` for the summary.
- **Core Pillar 1:** export from Kajabi (JT).
- **Bonus Courses 1 to 10:** Google Drive folder `15hLkZGkQgT...`. Each module's `STEP 3 | LESSON CONTENT` doc is the lesson body. Hedra animated intros (in Kajabi) become the `video_url` once hosted.

## Run

```
npm run migrate     # create tables (first time)
npm run seed        # seed pillars + admin
npm run import      # load all content/ markdown into the database
```
