Skip to content

Commit 6b82ad0

Browse files
committed
add robots
1 parent 34e6600 commit 6b82ad0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/SeoManager.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,22 @@ public function setAlternates(?array $value): static
170170
return $this;
171171
}
172172

173+
/**
174+
* @return $this
175+
*/
176+
public function noIndexNoFollow(): static
177+
{
178+
return $this->setRobots('noindex, nofollow');
179+
}
180+
181+
/**
182+
* @return $this
183+
*/
184+
public function noIndex(): static
185+
{
186+
return $this->setRobots('noindex');
187+
}
188+
173189
/**
174190
* @param null|string|string[] $keywords
175191
* @param null|Alternate[] $alternates

0 commit comments

Comments
 (0)