Menu

Every title on our 38 pages is under 60 characters, and three of them are not if you count the HTML
📰

Every title on our 38 pages is under 60 characters, and three of them are not if you count the HTML

DEV Community: nextjs·Daniel Pertu·3 days ago
#GEFzE4Qr
#devtonextjs#devto#dev#pages#notifio
Reading 0:00
15s threshold

Notifio is a desktop app that watches rental search pages and tells you the moment something new appears. Its website is 38 pages: a homepage, a pricing page, fifteen per-site alert pages, five comparison pages, eight long-form articles, and the usual legal furniture.

Two numbers govern every one of those pages. A meta title has to come in under 60 characters and a meta description under 160, because past roughly that point a search result gets truncated and the last clause of a sentence you wrote carefully becomes an ellipsis. Thirty-eight pages is more than I will hand-count reliably, so a node:test suite reads the page sources and counts for me. I wrote that suite up in Your title template spends ten of your sixty characters, and nobody counts them , and the short version is that it parses string literals out of page.tsx files and out of the catalogues the generated pages are built from, appends the root layout's %s | Notifio suffix, and asserts.

It passes.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.