mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 23:37:43 +03:00
7539a681fe
closes https://github.com/TryGhost/Team/issues/2531 This commit fixes the issue where non-canonical URLs are included in the XML sitemap, leading to poor SEO for our user's sites. The solution implemented is to exclude any page or post that specifies a canonical URL in its metadata from the sitemap. To achieve this, a condition has been added to the 'addUrl' method, which checks for the existence of a canonical URL in the metadata of the resource being added to the sitemap. If a canonical URL is present, the resource is excluded from the sitemap. With this fix, our user's sites will have better SEO and improved search engine visibility. |
||
---|---|---|
.. | ||
content | ||
core | ||
test | ||
.c8rc.e2e.json | ||
.c8rc.json | ||
.eslintignore | ||
.eslintrc.js | ||
.npmignore | ||
config.development.json | ||
ghost.js | ||
index.js | ||
jsconfig.json | ||
loggingrc.js | ||
MigratorConfig.js | ||
package.json | ||
playwright.config.js |