You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What does this PR change? What problem does it solve?
This PR adds the ability to use the noindex and nofollow parameters for specific pages in production mode, preventing e.g. the imprint from showing up in search engines. It also lists these pages in the robots.txt file.
Was the change discussed in an issue or in the Discussions before? #712 also touches this line, but it adds other functionality as well and doesn't include robots.txt.
You shouldnt use Disallow: in robots.txt as it will stop crawlers from seeing the noindex directive, thus leaving the possibility of site still being indexed anyways.
However, robots.txt disallow does not guarantee that a page will not appear in results: Google may still decide, based on external information such as incoming links, that it is relevant and show the URL in the results. If you wish to explicitly block a page from being indexed, use the noindex robots meta tag or X-Robots-Tag HTTP header. In this case, don't disallow the page in robots.txt, because the page must be crawled in order for the tag to be seen and obeyed.
Cite: Google's Robots FAQs
- adds the ability to use the noindex and nofollow parameters for specific pages in production mode, preventing e.g. the imprint from showing up in search engines.
- Usage: In post front-matter add,
---
robotsNoIndex: true
---
minyeamer
pushed a commit
to minyeamer/hugo-PaperMod
that referenced
this pull request
Sep 16, 2022
- adds the ability to use the noindex and nofollow parameters for specific pages in production mode, preventing e.g. the imprint from showing up in search engines.
- Usage: In post front-matter add,
---
robotsNoIndex: true
---
dunklecat
pushed a commit
to dunklecat/hugo-PaperModX
that referenced
this pull request
Oct 8, 2022
- adds the ability to use the noindex and nofollow parameters for specific pages in production mode, preventing e.g. the imprint from showing up in search engines.
- Usage: In post front-matter add,
---
robotsNoIndex: true
---
kylethedeveloper
pushed a commit
to kylethedeveloper/hugo-PaperMod
that referenced
this pull request
Feb 21, 2023
- adds the ability to use the noindex and nofollow parameters for specific pages in production mode, preventing e.g. the imprint from showing up in search engines.
- Usage: In post front-matter add,
---
robotsNoIndex: true
---
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR change? What problem does it solve?
This PR adds the ability to use the
noindex
andnofollow
parameters for specific pages in production mode, preventing e.g. the imprint from showing up in search engines. It also lists these pages in therobots.txt
file.Was the change discussed in an issue or in the Discussions before?
#712 also touches this line, but it adds other functionality as well and doesn't include
robots.txt
.Cheers!
PR Checklist