From f2ffdecace88609acc091f08cf18adba8caed021 Mon Sep 17 00:00:00 2001 From: Claudio Date: Fri, 21 Aug 2026 11:27:02 +0200 Subject: [PATCH] Put the date in post URLs --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index b595687..9196ef3 100644 --- a/build.py +++ b/build.py @@ -61,7 +61,7 @@ def build_posts(): raise SystemExit(f"{path.name}: expected a YYYY-MM-DD-slug.md filename") date, slug = match.groups() title, body = read(path) - url = f"/posts/{slug}/" + url = f"/{date.replace('-', '/')}/{slug}/" write(url, page(f"{title} — {SITE_TITLE}", render("post.html", title=html.escape(title), date=date, body=body))) posts.append({"title": title, "date": date, "url": url, "body": body}) -- knotmirror 0.0.1