|
| 1 | +# LLMHorrors.com |
| 2 | + |
| 3 | +Astro static site (Tailwind CSS, Svelte components) deployed on Vercel. |
| 4 | + |
| 5 | +## Adding a New LLM Horror Story |
| 6 | + |
| 7 | +### 1. Create the post file |
| 8 | + |
| 9 | +Create `src/content/blog/{service}-{summary}.md` (e.g. `chatgpt-hallucination.md`). |
| 10 | + |
| 11 | +Frontmatter schema: |
| 12 | + |
| 13 | +```yaml |
| 14 | +--- |
| 15 | +title: Short descriptive title # Max 100 chars |
| 16 | +description: Short summary of the horror story... |
| 17 | +tags: |
| 18 | + - chatgpt # Service name + relevant tags (hallucination, cost, etc.) |
| 19 | + - hallucination |
| 20 | +author: Andras Bacsai |
| 21 | +authorTwitter: heyandras |
| 22 | +date: "2026-02-10T12:34:56.789Z" # ISO date string |
| 23 | +image: /assets/{service}-{summary}.{ext} # Local image in public/assets/ |
| 24 | +category: development |
| 25 | +isNew: true # Shows "New" badge on homepage |
| 26 | +--- |
| 27 | +``` |
| 28 | + |
| 29 | +### 2. Add the post image |
| 30 | + |
| 31 | +Save the screenshot/image to `public/assets/{service}-{summary}.{ext}` (png/jpg/webp). |
| 32 | + |
| 33 | +All images must be local — never use external URLs in frontmatter `image:` fields. The `BaseHead.astro` component automatically converts relative paths to absolute URLs for `og:image` and `twitter:image` meta tags. |
| 34 | + |
| 35 | +### 3. Write the post body |
| 36 | + |
| 37 | +Follow this pattern: |
| 38 | + |
| 39 | +```markdown |
| 40 | +--- |
| 41 | + |
| 42 | +[Original post](https://x.com/user/status/123456) |
| 43 | + |
| 44 | +Conclusion: Brief takeaway. |
| 45 | + |
| 46 | +--- |
| 47 | + |
| 48 | +__tldr: One-sentence summary of what happened.__ |
| 49 | +``` |
| 50 | + |
| 51 | +Optional sections: Fun Fact with `<img>` (use local paths), extended quotes/context. |
| 52 | + |
| 53 | +### 4. Update the previous "new" post |
| 54 | + |
| 55 | +Find the previous post with `isNew: true` and set it to `isNew: false`. |
| 56 | + |
| 57 | +### 5. No other config needed |
| 58 | + |
| 59 | +Astro automatically handles routing (`/all/{slug}`), RSS feed, and homepage listing sorted by date. |
| 60 | + |
| 61 | +## Project Structure |
| 62 | + |
| 63 | +- `src/content/blog/*.md` — Blog posts (Astro Content Collections) |
| 64 | +- `src/content/config.ts` — Content schema |
| 65 | +- `src/config.ts` — Site metadata (name, URL, author, default image) |
| 66 | +- `src/components/BaseHead.astro` — Meta tags (og:image, twitter:image) |
| 67 | +- `src/pages/index.astro` — Homepage |
| 68 | +- `src/pages/all/[slug].astro` — Individual post pages |
| 69 | +- `src/layouts/post.astro` — Post layout |
| 70 | +- `public/assets/` — All local images (post images, blog cover, etc.) |
0 commit comments