File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/gitbook/src/routes Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " gitbook " : patch
3
+ ---
4
+
5
+ Fix order in robots.txt preventing indexation of images by Google.
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ export async function serveRobotsTxt(context: GitBookSiteContext) {
13
13
const lines = isIndexable
14
14
? [
15
15
'User-agent: *' ,
16
+ // Disallow other dynamic routes / search queries
17
+ 'Disallow: /*?' ,
16
18
// Allow image resizing and icon generation routes for favicons and search results
17
19
'Allow: /~gitbook/image?*' ,
18
20
'Allow: /~gitbook/icon?*' ,
19
- // Disallow other dynamic routes / search queries
20
- 'Disallow: /*?' ,
21
21
'Allow: /' ,
22
22
`Sitemap: ${ linker . toAbsoluteURL ( linker . toPathInSpace ( isRoot ? '/sitemap.xml' : '/sitemap-pages.xml' ) ) } ` ,
23
23
]
You can’t perform that action at this time.
0 commit comments