Skip to content

Avoid flex objects from indexing #102

Description

@xf-

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions