We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19fd693 commit d3f2772Copy full SHA for d3f2772
config/options.php
@@ -1,6 +1,7 @@
1
<?php
2
3
use Kirby\Cms\Page;
4
+use tobimori\Seo\Seo;
5
6
return [
7
'cascade' => [
@@ -22,11 +23,7 @@
22
23
'locale' => fn (Page $page) => $page->kirby()->language()?->locale(LC_ALL) ?? $page->kirby()->option('tobimori.seo.locale', 'en_US'),
24
// default for robots: noIndex if global index configuration is set, otherwise fall back to page status
25
'robotsIndex' => function (Page $page) {
- $index = $page->kirby()->option('tobimori.seo.robots.index');
26
- if (is_callable($index)) {
27
- $index = $index();
28
- }
29
-
+ $index = Seo::option('tobimori.seo.robots.index');
30
if (!$index) {
31
return false;
32
}
0 commit comments