boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

add noindex meta tag on search result pages #104

Open ebenenglish opened 1 year ago

ebenenglish commented 1 year ago

For search result pages, we should add the following meta tag to the of the rendered HTML page:

<meta name="robots" content="noindex">

The page will still be crawled, but not indexed.

Note that this should implemented in addition to (not as a substitute for) #68.

Blacklight has a content_for(:head) method that could be used for this.