@koehler8/cms 1.0.0-beta.31 → 1.0.0-beta.32
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/package.json
CHANGED
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
* (site.draft, site.draftPaths, page.draft) regenerates the disallow list on
|
|
7
7
|
* every build.
|
|
8
8
|
*
|
|
9
|
-
* Always
|
|
10
|
-
*
|
|
9
|
+
* Always disallows /admin (a non-public route that is never listed in the
|
|
10
|
+
* sitemap). Compliance pages (/privacy, /terms, /cookies) are intentionally
|
|
11
|
+
* NOT disallowed: they are public, footer-linked, emit correct canonicals, and
|
|
12
|
+
* appear in sitemap.xml — disallowing them contradicts the sitemap and triggers
|
|
13
|
+
* "Blocked by robots.txt" (pages-in-a-sitemap) errors in Search Console. Adds:
|
|
11
14
|
* - "Disallow: /" when site.draft === true
|
|
12
15
|
* - "Disallow: <prefix>" for each entry in site.draftPaths
|
|
13
16
|
* - "Disallow: <path>" for each page with draft === true
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
|
|
18
21
|
import { normalizeDraftPath } from './draftMode.js';
|
|
19
22
|
|
|
20
|
-
const FRAMEWORK_DEFAULTS = ['/admin'
|
|
23
|
+
const FRAMEWORK_DEFAULTS = ['/admin'];
|
|
21
24
|
|
|
22
25
|
export function buildRobotsTxt(siteConfig, sitemapUrl = '') {
|
|
23
26
|
const lines = ['User-agent: *'];
|