-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert <link rel="canonical">
elements
#1140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the idea that forks of this repo should point to the canonical location? Doing this substitution in the workflow means that someone running mdbook build
and uploading it to a test location won't get the substitution.
That is a good point... maybe I should use JavaScript instead then! It's supported, but I got the impression that it's a bit discouraged. But it's important that people get the tags even if they run |
This prevents duplicate search results in case copies of the material is being left visible on the web. See https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls for details. The implementation here should mostly go away when google/mdbook-i18n-helpers#70 is implemented.
0773a12
to
a8e6691
Compare
Thanks for catching the problem with putting the logic into |
This is a follow-up to #1140 to further ensure that people can find the canonical home for the course.
This is a follow-up to #1140 to further ensure that people can find the canonical home for the course.
This prevents duplicate search results in case copies of the material is being left visible on the web. See the Search Central documentation[1] for details. The implementation here should mostly go away when google/mdbook-i18n-helpers#70 is implemented. [1]: https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls
This is a follow-up to google#1140 to further ensure that people can find the canonical home for the course.
This prevents duplicate search results in case copies of the material is being left visible on the web. See the Search Central documentation for details.
The implementation here is very simple and should go away when google/mdbook-i18n-helpers#70 is implemented.