add noindex tag#67
Conversation
add tag to pages that shouldn't show in search
| description: Place holder. | ||
| image: /assets/img/plant.webp | ||
| type: Hidden | ||
| noindex: true |
There was a problem hiding this comment.
This isn't getting propagated through to the header file. But also, this may not be needed, as you could just hide the index based on the type and do noindex if it's type: Hidden. Either way, it somehow needs to get passed to the header on the posts page.
There was a problem hiding this comment.
Fair enough.
I did consider reusing Hidden for that, but I thought there might be pages you want hidden from menus, but still indexed in search.
I also noticed you can access https://ladybird.org/newsletter/2024-07-31/ but they are not indexed - do you want them to be?
versecafe
left a comment
There was a problem hiding this comment.
This doesn't actually do anything since noindex isn't passed up to the header component and is therefor always undefined and as such the tag is never included, eithe pass it up through Post.astro -> Head.astro or handle index policies in robots.txt for broader rules
|
This PR does not seem to get updated; let's close it for now. |
add tag to pages that shouldn't show in search