(title: string)
| 15 | |
| 16 | const brandSuffix = /\s*[|·\-–—]\s*daily\.dev\s*$/i; |
| 17 | const cleanTitle = (title: string): string => |
| 18 | title.replace(brandSuffix, '').trim(); |
| 19 | |
| 20 | // Classify by the route template (router.pathname), not the resolved URL — only |
| 21 | // the template distinguishes a user profile (`/[userId]`) from other top-level |