Skip to content

Commit

Permalink
add robots
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Sep 13, 2024
1 parent 34e6600 commit 6b82ad0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/SeoManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,22 @@ public function setAlternates(?array $value): static
return $this;
}

/**
* @return $this
*/
public function noIndexNoFollow(): static
{
return $this->setRobots('noindex, nofollow');
}

/**
* @return $this
*/
public function noIndex(): static
{
return $this->setRobots('noindex');
}

/**
* @param null|string|string[] $keywords
* @param null|Alternate[] $alternates
Expand Down

0 comments on commit 6b82ad0

Please sign in to comment.