Skip to content

Commit d3f2772

Browse files
committed
fix: #140 (?)
1 parent 19fd693 commit d3f2772

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

config/options.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Kirby\Cms\Page;
4+
use tobimori\Seo\Seo;
45

56
return [
67
'cascade' => [
@@ -22,11 +23,7 @@
2223
'locale' => fn (Page $page) => $page->kirby()->language()?->locale(LC_ALL) ?? $page->kirby()->option('tobimori.seo.locale', 'en_US'),
2324
// default for robots: noIndex if global index configuration is set, otherwise fall back to page status
2425
'robotsIndex' => function (Page $page) {
25-
$index = $page->kirby()->option('tobimori.seo.robots.index');
26-
if (is_callable($index)) {
27-
$index = $index();
28-
}
29-
26+
$index = Seo::option('tobimori.seo.robots.index');
3027
if (!$index) {
3128
return false;
3229
}

0 commit comments

Comments
 (0)