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