mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-18 17:02:29 +00:00
remove embed pages and 404 from search results
This commit is contained in:
1 parent
c36636652b
commit
eed13abeb0
2 files changed
+4
-1
No files matched your search
@@ -12,7 +12,7 @@ function generateSitemap() {
|
||||
const url = page.replace('.html', '').replace('index', '');
|
||||
|
||||
const rootDir = url.split('/')[0];
|
||||
if (languages[url] || languages[rootDir]) {
|
||||
if (url.includes('embed') || url.includes('404') || languages[url] || languages[rootDir]) {
|
||||
// Skip localized pages
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
User-agent: *
|
||||
Disallow: /*?*
|
||||
Disallow: /embed
|
||||
Disallow: /*/embed
|
||||
Disallow: /404
|
||||
Sitemap: https://gpx.studio/sitemap.xml
|
||||
Reference in new issue
Block a user