@symbo.ls/brender 3.14.0 → 3.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sitemap.js DELETED
@@ -1,28 +0,0 @@
1
- /**
2
- * Generate a sitemap XML string from project pages.
3
- *
4
- * @param {string} baseUrl - The base URL (e.g. 'https://example.com')
5
- * @param {object} routes - Pages object keyed by route path
6
- * @returns {string} Sitemap XML
7
- */
8
- export function generateSitemap (baseUrl, routes) {
9
- const urls = Object.entries(routes).map(([path, config]) => {
10
- const metadata = config.metadata || {}
11
- const canonical = metadata.canonical || `${baseUrl}${path === '/' ? '' : path}`
12
-
13
- return `
14
- <url>
15
- <loc>${canonical}</loc>
16
- <lastmod>${new Date().toISOString()}</lastmod>
17
- <changefreq>weekly</changefreq>
18
- <priority>${path === '/' ? '1.0' : '0.8'}</priority>
19
- </url>`
20
- })
21
-
22
- return `<?xml version="1.0" encoding="UTF-8"?>
23
- <urlset
24
- xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
25
- xmlns:xhtml="http://www.w3.org/1999/xhtml">
26
- ${urls.join('\n')}
27
- </urlset>`
28
- }