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

Empty archive pages (and author archives) should be noindex'd #577

Closed
jonoalderson opened this issue Apr 21, 2023 · 2 comments
Closed

Empty archive pages (and author archives) should be noindex'd #577

jonoalderson opened this issue Apr 21, 2023 · 2 comments
Labels
[Component] Theme The frontend of the pattern directory, pattern lists UI Good First Issue Good for newcomers

Comments

@jonoalderson
Copy link

When an archive page contains zero results (such as https://wordpress.org/patterns/author/vrajeshthakkar/categories/text/), the <head> should include a meta robots tag with a noindex, follow directive.

This must be included in the server-side response, and not rely on client-side JavaScript.

@StevenDufresne StevenDufresne added the [Component] Theme The frontend of the pattern directory, pattern lists UI label Apr 24, 2023
@ryelle ryelle added the Good First Issue Good for newcomers label May 17, 2023
@ryelle
Copy link
Contributor

ryelle commented Apr 18, 2024

Now that the theme is not using a JS SPA anymore, I'm checking this out and it appears that authors & search results have <meta name="robots" content="noindex,follow" /> regardless of empty result set. Is that correct?

@jonoalderson
Copy link
Author

Super!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Theme The frontend of the pattern directory, pattern lists UI Good First Issue Good for newcomers
3 participants