| title: | First Post |
|---|---|
| date: | 2026-04-04T00:00:00.000Z |
| author: | nbbaier |
This blog post is loaded from content/blog/first-post.md.
When your site has more than a handful of pages, keeping markdown in separate files is much cleaner than embedding it in your build script:
import { readFile } from "https://esm.town/v/std/utils/index.ts";
const md = await readFile("./content/blog/first-post.md", import.meta.url);
That's it — readFile returns the file contents as a UTF-8 string.