Add option to set noindex in mdx file #1916
spokospace
started this conversation in
Feature Requests
Replies: 1 comment
-
Thank you for the suggestion! In the meantime you can do this using the ---
title: Don’t index me!
head:
- tag: meta
attrs:
name: robots
content: noindex
---
Content... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlight
are you using?0.22.4
What is your idea?
It will be good to add additional parameter to add
<meta name="robots" content="noindex" />
to head.e.g.:
Why is this feature necessary?
It is good to have control over the pages, for some pages I need to disable option for indexing by search engine robots.
Do you have examples of this feature in other projects?
In other projects on Astro I usually use astro-seo for this and the setting

noindex={true}
.https://github.com/jonasmerlin/astro-seo/blob/7d3387a2d90aab5fc622def6994520f705c685e3/src/pages/noindex.astro#L9
Participation
Beta Was this translation helpful? Give feedback.
All reactions