Sitemap.xml fixed
This commit is contained in:
@@ -320,7 +320,7 @@ export const dynamic = 'force-dynamic'
|
||||
export const GET = createHealthRoute({ getCachedPayload })
|
||||
```
|
||||
Jeden sitemap: `sitemap.xml/route.ts` **albo** `sitemap.ts` — nigdy oba. Nagłówek
|
||||
sitemapy = `siteName` z Site Settings, pod nim „Technology by Intecion.com”; zmiana
|
||||
sitemapy = „XML Sitemap”, pod nim „Technology by Intecion.com”; zmiana
|
||||
przez `createContentHelpers({ sitemapStyle })` (seo.md).
|
||||
|
||||
### 2.9 next.config.ts i instrumentation.ts
|
||||
|
||||
+1
-3
@@ -1079,7 +1079,7 @@ export { sitemapRoute as GET } from '@/lib/content'
|
||||
export const dynamic = 'force-dynamic'
|
||||
```
|
||||
|
||||
- **Nagłówek** = `siteName` z Site Settings (język domyślny); brak → „XML Sitemap”.
|
||||
- **Nagłówek** = „XML Sitemap” (bez nazwy firmy/strony).
|
||||
- **Linia pod nagłówkiem** = dostawca technologii: „Technology by Intecion.com”.
|
||||
- To CSS na XML (`<?xml-stylesheet type="text/css"?>`, standard W3C) — **nie XSLT**,
|
||||
które przeglądarki wycofują. Google ignoruje dyrektywę; zero wpływu na SEO.
|
||||
@@ -1090,9 +1090,7 @@ createContentHelpers({
|
||||
config, content, i18n: i18nConfig,
|
||||
sitemapStyle: { accent: '#0f766e' }, // kolor akcentu
|
||||
// sitemapStyle: { credit: false }, // bez linii dostawcy
|
||||
// sitemapStyle: { title: 'Sitemap' }, // stały nagłówek zamiast siteName
|
||||
// sitemapStyle: false, // surowy XML (natywny widok przeglądarki)
|
||||
// siteNameField: 'name', // gdy pole nazwy w Site Settings ma inną nazwę
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user