From 61bb405f99a2b8a49bbfe8383f3bccc01e8ac434 Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Tue, 18 Nov 2025 15:00:22 -0700 Subject: [PATCH] Fix build error by moving zine.md out of content/ directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- README.md | 4 ++-- src/{content => data}/zine.md | 0 src/pages/index.astro | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{content => data}/zine.md (100%) diff --git a/README.md b/README.md index f276560..89a4114 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Node.js >= 18.20.8 (or upgrade to Node.js 20+ for best compatibility) ``` ├── src/ -│ ├── content/ +│ ├── data/ │ │ └── zine.md # Your zine content in Markdown │ └── pages/ │ └── 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 -1. Open `src/content/zine.md` +1. Open `src/data/zine.md` 2. Write your content using Markdown 3. Use `## Heading` for section breaks (each becomes a full-height section) 4. The dev server will hot-reload your changes diff --git a/src/content/zine.md b/src/data/zine.md similarity index 100% rename from src/content/zine.md rename to src/data/zine.md diff --git a/src/pages/index.astro b/src/pages/index.astro index a0fa940..593d968 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -4,7 +4,7 @@ import { join } from 'node:path'; import { marked } from 'marked'; // 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'); // Split content into sections based on ## headers