(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 | // Records the last visited non-post pages for the v2 Home "Recent" section. |
| 21 | // Individual post permalinks (`/posts/[id]`) are skipped — those belong to |