From cfe23602df26462f4cacc056697d8e2572e83a9e Mon Sep 17 00:00:00 2001 From: Arjun Vinod Date: Sat, 18 Apr 2026 00:15:36 -0700 Subject: [PATCH] refactor: serve books page at /books/ instead of /books.html Renames books.html to books/index.html so the page is served at the cleaner URL arjunvinod.com/books/. Internal paths inside the file were absolutized (css/js/images) since the file is now one directory deeper. Updates nav links, canonical + og:url, sitemap, lint and Lighthouse configs, and documentation to match. Co-Authored-By: Claude Opus 4.7 --- 404.html | 2 +- CLAUDE.md | 6 +++--- README.md | 5 +++-- books.html => books/index.html | 22 +++++++++++----------- index.html | 2 +- lighthouserc.js | 2 +- package.json | 2 +- sitemap.xml | 2 +- 8 files changed, 22 insertions(+), 21 deletions(-) rename books.html => books/index.html (92%) diff --git a/404.html b/404.html index 3e103f1..010d28f 100644 --- a/404.html +++ b/404.html @@ -63,7 +63,7 @@
diff --git a/CLAUDE.md b/CLAUDE.md index 6162b4b..2e483a4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -27,13 +27,13 @@ A Claude Code hook auto-lints HTML/CSS files on edit, but always run the full `n **Two pages, one shared stylesheet:** - `index.html` — landing page with a two-lane vertical timeline (Experience / Education) -- `books.html` — reading list with book covers loaded from the Open Library Covers API +- `books/index.html` — reading list (served at `/books/`) with book covers loaded from the Open Library Covers API - `css/styles.css` — all shared styles; page-specific overrides live in inline ` - - - + + + @@ -90,7 +90,7 @@
diff --git a/index.html b/index.html index d66b5b0..5445d72 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@
diff --git a/lighthouserc.js b/lighthouserc.js index 0878b38..e48ba62 100644 --- a/lighthouserc.js +++ b/lighthouserc.js @@ -1,7 +1,7 @@ module.exports = { ci: { collect: { - url: ['http://localhost:4000/', 'http://localhost:4000/books.html'], + url: ['http://localhost:4000/', 'http://localhost:4000/books/'], numberOfRuns: 1, }, assert: { diff --git a/package.json b/package.json index b6cfbf6..ac35a2d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "description": "Personal portfolio site", "scripts": { - "lint:html": "htmlhint index.html books.html", + "lint:html": "htmlhint index.html books/index.html", "lint:css": "stylelint 'css/**/*.css'", "lint": "npm run lint:html && npm run lint:css", "lighthouse": "lhci autorun" diff --git a/sitemap.xml b/sitemap.xml index ccd70d1..7de109a 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -6,7 +6,7 @@ 1.0 - https://arjunvinod.com/books.html + https://arjunvinod.com/books/ monthly 0.8