mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 15:43:25 +00:00
remove embed pages and 404 from search results
This commit is contained in:
@@ -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