Skip to content

Commit 3f39bf2

Browse files
committed
A page for each town we deliver to
Somebody in Marthandam looking for a car does not search for "Kanyakumari district" -- they search for Marthandam. The site named twelve towns in a row of chips on the home page and competed properly for none of them, because a page that mentions a town in passing has nothing to say about it. Twelve town pages now, and a hub above them at /car-rental. Each one says what that town is, what the roads around it are like, what people actually hire there, and how far the drives worth making from it are. The risk in doing this is the opposite failure, and it is worse than not doing it: twelve pages that are one page with the name swapped. Google calls those doorway pages and treats them as a reason to trust the whole site less. So every page is written from its own entry in towns.json rather than generated from a template with a placeholder in it -- Colachel is about a fishing harbour and a battle in 1741, Marthandam about the rubber belt and the airport run, Padmanabhapuram about a palace that shuts for a long lunch and catches people out. Measured rather than assumed: the two most similar pages share 63% of their vocabulary, and most of that is the header, the nav and the footer that every page of the site carries. Distances are approximate road distances and are in the data file, so they are one edit each rather than a search through markup. They want checking against what the owner actually drives -- that is the one part of this I cannot verify from here, and it is flagged rather than left to be discovered. Structure, because a set of pages nothing links to is a set of orphans: the town names on the home page are links now rather than chips that do nothing -- that section was the obvious place and it led nowhere; every town page links to the other eleven, so a crawler that finds one finds all of them; "Where we deliver" is in the footer, which puts the hub on every page of the site rather than only on the home page; all thirteen are in the sitemap, derived from towns.json by the same module the app reads, so adding a town cannot produce a page the sitemap does not list. Each town page also carries a Service node naming that one town, pointing at the business's @id rather than repeating it, and a three-step breadcrumb -- Home > Where we deliver > Marthandam. The leaf was "Self Drive Car Rental" on all twelve at first: the rule that shortens a title by cutting at " in " threw away the only word that distinguished them. An unknown slug renders the 404 page rather than an empty frame with a name in it, which is what a route matching anything would otherwise turn every typo into. readablePhone moved out of the footer into lib/phone.ts. The town pages print the number too, and the second copy of a formatter is the one that goes out of step with the first. Checked: all twenty-six routes render with one h1, one header and one footer, no sideways scrolling at 390px, and no console errors. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf
1 parent a836c61 commit 3f39bf2

61 files changed

Lines changed: 1576 additions & 131 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.site-manifest.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"blog",
99
"build.json",
1010
"car-brezza.avif",
11+
"car-rental",
1112
"cars",
1213
"contact",
1314
"favicon.svg",

‎404.html‎

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

‎about/index.html‎

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎assets/CarRentalAreas-B3Fw9MZ0.js‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)