Fix build error by moving zine.md out of content/ directory

Astro treats src/content/ as a content collection directory, which
caused a build error. Moved zine.md to src/data/ and updated
references in index.astro and README.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Nathan Schneider
2025-11-18 15:00:22 -07:00
parent 33dab637ab
commit 61bb405f99
3 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ Node.js >= 18.20.8 (or upgrade to Node.js 20+ for best compatibility)
``` ```
├── src/ ├── src/
│ ├── content/ │ ├── data/
│ │ └── zine.md # Your zine content in Markdown │ │ └── zine.md # Your zine content in Markdown
│ └── pages/ │ └── pages/
│ └── index.astro # Main page that renders the zine │ └── index.astro # Main page that renders the zine
@@ -53,7 +53,7 @@ Node.js >= 18.20.8 (or upgrade to Node.js 20+ for best compatibility)
## Editing Your Zine ## Editing Your Zine
1. Open `src/content/zine.md` 1. Open `src/data/zine.md`
2. Write your content using Markdown 2. Write your content using Markdown
3. Use `## Heading` for section breaks (each becomes a full-height section) 3. Use `## Heading` for section breaks (each becomes a full-height section)
4. The dev server will hot-reload your changes 4. The dev server will hot-reload your changes

View File

@@ -4,7 +4,7 @@ import { join } from 'node:path';
import { marked } from 'marked'; import { marked } from 'marked';
// Import and parse the markdown content // Import and parse the markdown content
const markdownPath = join(process.cwd(), 'src/content/zine.md'); const markdownPath = join(process.cwd(), 'src/data/zine.md');
const markdownContent = await readFile(markdownPath, 'utf-8'); const markdownContent = await readFile(markdownPath, 'utf-8');
// Split content into sections based on ## headers // Split content into sections based on ## headers