Skip to content

Commit

Permalink
fix robots section not working on drafts, maybe closing #60
Browse files Browse the repository at this point in the history
  • Loading branch information
tobimori committed Jan 26, 2024
1 parent 7b07595 commit 5833457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blueprints/fields/robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


$path = $kirby->request()->path()->data()[2];
$page = page(Str::replace($path, '+', '/'));
$page = App::instance()->site()->findPageOrDraft(Str::replace($path, '+', '/'));

foreach ($kirby->option('tobimori.seo.robots.types') as $robots) {
$upper = Str::ucfirst($robots);
Expand Down

0 comments on commit 5833457

Please sign in to comment.