facebook / facebook/docusaurus
Allow site configuration to not index tag pages
- Lingua principale
- TypeScript
- Stelle
- 66.2k
- Fork
- 10k
- Merge medio
- 1g 3h
- PR unite (30g)
- 52
Descrizione
### Have you read the Contributing Guidelines on issues?
- [X] I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#issues).
### Description
### Solution
**Proposed API:**
User experience, add new flag for `DocusaurusConfig` in `docusaurus.config` file such as `deindexTags: true`.
**Proposed changes:**
### Motivation
#### Why
Tag pages are thin/low quality, creating duplicated content.
This leads to search engines scoring the website lower, or indexing tag pages before the specific pages.
Google says [1]:
> Block crawling of duplicate content on your site, or unimportant resources (such as small, frequently used graphics such as icons or logos) that might overload your server with requests. Don't use robots.txt as a mechanism to prevent indexing; use the noindex tag or login requirements for that
I have solved this through wrapping/swizzling list pages, tag components and and custom `sitemap.ignorePatterns` rule in the config file, but it's a lot of workaround and a **best-practice** like this would be appreciated if it came as default.
#### Background
This has lead to me issues with all search engines for [privacylearn.com](https://privacylearn.com) to present open-source scripts pre-launch.
siteliner analysis:
Google indexing status:
Engines include Google, Yandex and Bing where thousands of my pages got de-indexed over time and tags pages took more priority than proper pages.
[1]: https://developers.google.com/search/docs/fundamentals/get-started#robots.txt
### API design
_No response_
### Have you tried building it?
_No response_
### Self-service
- [ ] I'd be willing to contribute this feature to Docusaurus myself.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.