Linus 2026-11-06: he offers no services; the site has posters and collaborations only. /tjanster went live with the move to Cleura (it came with the SEO pull request #1) and was redirected to the start page in Caddy the same morning. - tjanster.astro deleted; Tjänster out of the menu and the 404 page. - Start page: "Vill du boka en fotografering?" -> "Vill du ha en bild på väggen?" (Se posters); "Så bokar du" -> "Posters och samarbeten"; description without "Boka via kundportalen". - Portfolio intro points to the posters; privacy page: orders of posters and collaborations instead of bookings. - JSON-LD: Organization instead of ProfessionalService, no ReserveAction, offer catalog, price range or service area. - llms.txt: no prices, booking, booking steps, services page or booking FAQ; faq.ts keeps only the type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
367 B
TypeScript
9 lines
367 B
TypeScript
// src/lib/url.ts
|
|
// Gör om en byggsökväg till kanonisk form: "/", "/about", "/portfolio".
|
|
// Klarar både build.format "file" (/about.html) och "directory" (/about/).
|
|
export function normalizePath(p: string): string {
|
|
let out = p.replace(/\/index\.html$/, '/').replace(/\.html$/, '');
|
|
if (out.length > 1) out = out.replace(/\/+$/, '');
|
|
return out || '/';
|
|
}
|