From a9aa1d39bb85c04fcd4f7a70f4a9eae48ce998f4 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sat, 26 Sep 2026 23:41:36 +0800 Subject: Keep journal prefix in public URLs --- hugo.toml | 2 +- scripts/publish-raw | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hugo.toml b/hugo.toml index 83d8efd..916a36e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -23,7 +23,7 @@ enableRobotsTXT = false lastmod = ["updated"] [permalinks] - journal = "/:year/:month/:slug" + journal = "/journal/:year/:month/:slug" notes = "/:sections/:slug" [outputs] diff --git a/scripts/publish-raw b/scripts/publish-raw index cc9b02b..4bcdbe9 100755 --- a/scripts/publish-raw +++ b/scripts/publish-raw @@ -21,7 +21,7 @@ do target=$public_dir/journal/_index.md ;; journal/*/*/*/*) - target=$public_dir/${relative#journal/} + target=$public_dir/$relative ;; journal/*) # The V1 model has no public year or month section documents. -- cgit v1.2.3