Linus 2026-11-06: everything public lives on imagesbyolofsson.se (Cleura), the customer subdomain is only for ordering and the logged-in portal; photos are sold as posters instead of being downloadable. - Portfolio: download menu (S/M/L), the original password dialog and /download/original are gone; the lightbox has "Köp som poster" -> /posters instead. - about.astro and contact.astro removed: Caddy on Cleura sends /about, /contact and /posters to the portal, so the About text and collaborations are edited once in admin. They stay in sitemap-0.xml (PORTAL_PAGES); the sitemap index lists /posters/sitemap.xml. - Menu and 404 page link Posters; privacy, robots.txt and llms.txt no longer mention password downloads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
698 B
TypeScript
17 lines
698 B
TypeScript
// src/pages/sitemap-index.xml.ts -> /sitemap-index.xml
|
|
// Egen sitemap utan @astrojs/sitemap (inga nya beroenden).
|
|
import type { APIRoute } from 'astro';
|
|
|
|
export const prerender = true;
|
|
|
|
export const GET: APIRoute = ({ site }) => {
|
|
const base = site ?? new URL('https://imagesbyolofsson.se');
|
|
const body = `<?xml version="1.0" encoding="UTF-8"?>
|
|
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
<sitemap><loc>${new URL('/sitemap-0.xml', base).toString()}</loc></sitemap>
|
|
<sitemap><loc>${new URL('/posters/sitemap.xml', base).toString()}</loc></sitemap>
|
|
</sitemapindex>
|
|
`;
|
|
return new Response(body, { headers: { 'Content-Type': 'application/xml; charset=utf-8' } });
|
|
};
|