aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-09-26 23:41:36 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-09-26 23:41:36 +0800
commita9aa1d39bb85c04fcd4f7a70f4a9eae48ce998f4 (patch)
tree534998f21eb69312cf1db6cf315a33ab02bf97d1
parenta3db162f1f37e75b05fff9f1581dcba2357e99b4 (diff)
downloadrhomepage-a9aa1d39bb85c04fcd4f7a70f4a9eae48ce998f4.tar.gz
rhomepage-a9aa1d39bb85c04fcd4f7a70f4a9eae48ce998f4.tar.xz
Keep journal prefix in public URLs
-rw-r--r--hugo.toml2
-rwxr-xr-xscripts/publish-raw2
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.