Repository navigation
Update robots.txt to not index the search page. - #366
Merged
Merged
Conversation
stumbo
requested review from
masinter and
pamoroso
and
a balanced review from Copilot
November 22, 2026 16:32
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The /search/ robots.txt disallow prevents crawlers from seeing the page’s noindex directive, so search URLs can remain indexed or be indexed from incoming links.
1 open issue
What changed in this PR
This PR aims to keep the Google Custom Search results page out of search-engine indexes and help crawlers discover the site’s sitemap.
Changes:
- Adds a
/search/crawl restriction and sitemap URL torobots.txt. - Adds page-level
noindexmetadata, which also triggers the existing sitemap exclusion. - Documents the intended search-page indexing behavior.
| File | Description |
|---|---|
| README.md | Documents the search page’s indexing restrictions. |
| layouts/robots.txt | Disallows crawling /search/ and advertises the sitemap. |
| content/en/search.md | Sets robots = "noindex" for the search results page. |
Review effort: Balanced
|
Staging preview for this pull request is available at https://interlisp.org/Interlisp.staging/pr-366/ |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

This is one of the changes suggested in the earlier draft SEO Optimization PR (PR #351). This change seems small and non-controversial, so I thought I would pull it out as a standalone PR.
The change is to ensure the
search.mdpage, the page where the search results retrieved from Google Custom Search are not indexed. There is no value in indexing the page.The other minor update to the
robots.txtfile adds the location of the sitemap file, again a minor update that provides a hint to crawlers.