From e51d2b6c0b33697f7e663741305c73bff68989de Mon Sep 17 00:00:00 2001 From: JoeMelko Date: Wed, 21 May 2025 13:29:52 -0700 Subject: [PATCH] Clarify local server requirement for blog posts --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ae0e884..1cdbd54 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,10 @@ Blog posts live in the `posts/` directory. Open a post by visiting No build step is required. Simply open the files directly in your browser. +If your browser shows "Error loading post." when loading a blog post directly from the file system, start a local server: + + python3 -m http.server + +Then visit http://localhost:8000/blog.html?post=hello-world (or any slug). This avoids cross-origin restrictions that can block `fetch` from `file:` URLs. + +