From 0ae62226bc71593eccc42753a21a99d7bdfca695 Mon Sep 17 00:00:00 2001 From: rasm-its Date: Mon, 28 Sep 2026 14:57:49 +0200 Subject: [PATCH] Path fix for sitemap css asset --- .../modules/seo/assets}/sitemap.css | 0 src/modules/seo/assets/sitemap.css | 76 +++++++++++++++++++ 2 files changed, 76 insertions(+) rename {src/modules/seo/asseets => dist/modules/seo/assets}/sitemap.css (100%) create mode 100644 src/modules/seo/assets/sitemap.css diff --git a/src/modules/seo/asseets/sitemap.css b/dist/modules/seo/assets/sitemap.css similarity index 100% rename from src/modules/seo/asseets/sitemap.css rename to dist/modules/seo/assets/sitemap.css diff --git a/src/modules/seo/assets/sitemap.css b/src/modules/seo/assets/sitemap.css new file mode 100644 index 0000000..d28b43a --- /dev/null +++ b/src/modules/seo/assets/sitemap.css @@ -0,0 +1,76 @@ +/* + * Starter stylesheet for a sitemap served via buildSitemapXml({ cssUrl }). + * Uses type="text/css" on XML (W3C "Associating Style Sheets with XML") — NOT + * XSLT, so no browser deprecation warning. Selectors are the XML tag names. + * + * Copy to your project's /public/sitemap.css and adjust colors/spacing to taste. + * Crawlers ignore this; it only affects the human-readable browser view. + */ + +urlset { + display: block; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + background: #090d16; + color: #f1f5f9; + padding: 2rem 1.5rem; + max-width: 1200px; + margin: 0 auto; + line-height: 1.5; +} + +/* Each URL entry as a card. */ +url { + display: block; + background: #111827; + border: 1px solid #1e293b; + border-radius: 8px; + padding: 1rem 1.25rem; + margin-bottom: 0.75rem; +} + +/* The URL itself. */ +loc { + display: block; + font-size: 0.95rem; + font-weight: 600; + color: #f97316; + margin-bottom: 0.5rem; + word-break: break-all; +} + +/* Metadata line: lastmod / changefreq / priority, each with a label. */ +lastmod, +changefreq, +priority { + display: inline-block; + font-size: 0.8rem; + color: #94a3b8; + margin-right: 1.5rem; +} + +lastmod::before { + content: 'Ostatnia modyfikacja: '; + color: #64748b; +} + +changefreq::before { + content: 'Częstotliwość: '; + color: #64748b; +} + +priority::before { + content: 'Priorytet: '; + color: #64748b; +} + +/* hreflang alternates as small pills. */ +link { + display: inline-block; + font-size: 0.75rem; + background: #1e293b; + color: #38bdf8; + border: 1px solid #334155; + padding: 0.15rem 0.45rem; + border-radius: 4px; + margin: 0.4rem 0.35rem 0 0; +} \ No newline at end of file