Skip to content
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

Take another swing at noindex metadata #132

Open
ConorMacBride opened this issue Nov 1, 2021 · 4 comments
Open

Take another swing at noindex metadata #132

ConorMacBride opened this issue Nov 1, 2021 · 4 comments
Milestone

Comments

@ConorMacBride
Copy link
Member

The sunpy main website, sunpy stable and latest docs all block robots. The following doesn't seem to have the intended effect:

{% if not version_slug in to_be_indexed | default([]) %}
<meta name="robots" content="noindex, nofollow" >
{% endif %}

to_be_indexed seems to be defined here

to_be_indexed = ['stable', 'latest']
however I cannot find any reference to version_slug anywhere. Does anyone know if and where version_slug is defined?

@Cadair
Copy link
Member

Cadair commented Nov 2, 2021

Yeah this doesn't seem to be working. It would probably be better to reverse this logic anyway, so that if no to_be_indexed is defined all versions are indexed.

@nabobalis
Copy link
Contributor

I will remove it and index everything.

@nabobalis
Copy link
Contributor

Its been removed from the theme, now up to each package to deal with it.

@Cadair Cadair reopened this Nov 3, 2021
@Cadair
Copy link
Member

Cadair commented Nov 3, 2021

We should keep track of this, as we don't want to have to go and configure it in each sponsored package forever.

Thanks for the hot-fix though.

@Cadair Cadair changed the title Not appearing in search engines Take another swing at noindex metadata Nov 3, 2021
@nabobalis nabobalis added this to the v2.0.0 milestone Aug 9, 2023
@Cadair Cadair modified the milestones: v2.0.0, v2.1.0 Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants