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

Avoid flex objects from indexing #102

Open
xf- opened this issue Feb 9, 2022 · 0 comments
Open

Avoid flex objects from indexing #102

xf- opened this issue Feb 9, 2022 · 0 comments

Comments

@xf-
Copy link

xf- commented Feb 9, 2022

Is there any documented way to avoid flex objects from being indexed?

My patch at the moment is

            /** @var Page $page */
            foreach ($pages->all() as $page) {
                if (preg_match("/^[0-9a-f]{32}/", $page->folder())) {
                    $page->header(['sitemap' => ['ignore' => true]]);
                }
            }

But that is very ugly, I saw no attribute on the page that says flex object or property in the blueprint to remove the indexing.

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

1 participant