Is there a centralized place for adding a global noindex
meta
HTML tag?
#2442
-
I deployed SPI on http://swift-package-index.clvrcld.net, but I don't want it to affect your search engine ranking because it finds a duplicate (see #2200 for a similar issue). At first I thought about Block Search indexing with I want to block all pages, so is there a centralized place I can add this tag? I can do it in a branch of my fork, and I'll create a PR with a flag for conditionally enabling it if you think it'd make sense (e.g. for staging/dev deployments). I saw two places where it could make sense: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
First of all, thanks so much for your contribution. We're happy to see this project be useful to help test your support for Swift hosting. Thanks also for considering our search ranking, it's a tough problem to keep on top of!
You are correct that the best way to do this is with
noindex
. I even have some good news in that you won't need to make any code changes or further PRs, only an environment change. If you choose to keep the site up and hosted, we'd suggest running it in our dev/staging mode. This does two main things:noindex
tag at the top of ever…