From d1f1dbd2a54d2f0d3f04aff8cc169d7f0c0276a1 Mon Sep 17 00:00:00 2001 From: Han Ngo Date: Sun, 28 Jun 2026 04:28:43 +0700 Subject: [PATCH 1/2] fix: home renders the log at bare root, no /log/ redirect Co-Authored-By: Claude Opus 4.8 (1M context) --- layouts/_default/index.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/layouts/_default/index.html b/layouts/_default/index.html index b29668e..ef7705e 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,10 +1,6 @@ - - +{{/* The homepage IS the running log: render blog/log.md inline at the bare root ( / ), + no redirect. Visitors stay on https://log.console.so/ instead of being bounced to + /log/. */}} {{ partial "header.html" . }} {{ $homepage := .Site.GetPage "/blog/log" }} From 563b7422804f38c31136fdc16dfae663d0b7433a Mon Sep 17 00:00:00 2001 From: Han Ngo Date: Sun, 28 Jun 2026 04:31:38 +0700 Subject: [PATCH 2/2] docs: proof-of-done for home bare-root (no /log/ redirect) Co-Authored-By: Claude Opus 4.8 (1M context) --- docs/verification/home-no-redirect.md | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 docs/verification/home-no-redirect.md diff --git a/docs/verification/home-no-redirect.md b/docs/verification/home-no-redirect.md new file mode 100644 index 0000000..744bcfd --- /dev/null +++ b/docs/verification/home-no-redirect.md @@ -0,0 +1,48 @@ +# Verification: home-no-redirect + +Behavioral change: the homepage (`layouts/_default/index.html`) JS-redirected `/` to the +log post's URL (`/log/`). Han wants the home to stay at the bare root `/`. Remove the +redirect; the template already renders `blog/log.md` inline via `GetPage`, so the home +now shows the log AT `/` with no bounce. + +## Green run + +``` +Command: env -u GOROOT obsidian-export ./vault ./content && env -u GOROOT hugo -DEF +Exit: 0 +Built /index.html: NO window.location.replace; renders the log inline (25,455 bytes, + contains "A list of changes and updates" = log.md body). +Verdict: PASS +``` + +## Negative control (revert -> RED -> restore) + +``` +GREEN (no script): / = bare-root, log rendered inline (no redirect) +REVERT (re-add script): / = window.location.replace("/log/") (RED, bounces away) +RESTORE (no script): / = bare-root, log rendered inline (GREEN) +Verdict: PASS (the redirect script is what bounced the home to /log/; removing it + leaves the home at the bare root rendering the log.) +``` + +## Live verification (after merge + deploy) + +- [ ] `curl -s https://log.console.so/ | grep -c location.replace` -> 0 (no redirect) +- [ ] `curl -s https://log.console.so/ | grep -o 'A list of changes'` -> present (log at root) + +## Note (follow-up, not in this change) + +`blog/log.md` still also renders a standalone `/log/` page, so the log content currently +appears at BOTH `/` (home) and `/log/`. Eliminating the `/log/` duplicate (redirect +`/log/` -> `/`, make the log live only at the root) is a content-repo restructure +(log.md `_build.render`, relocate aliases to `_index.md`, check the nav menu) , tracked +separately, pending Han's call. + +## Reproduce + +``` +cd ~/workspace/consolelabs/log.console.so +env -u GOROOT obsidian-export --hard-linebreaks ./vault ./content +B=$(mktemp -d); env -u GOROOT hugo --destination "$B" -DEF +grep -c location.replace "$B/index.html" # -> 0 +```