|
1 | 1 | <?php |
2 | 2 |
|
3 | 3 | use Kirby\Cms\Page; |
| 4 | +use tobimori\Seo\Meta; |
4 | 5 | use tobimori\Seo\Seo; |
| 6 | +use tobimori\Seo\Ai; |
| 7 | +use tobimori\Seo\IndexNow; |
| 8 | +use tobimori\Seo\SchemaSingleton; |
5 | 9 |
|
6 | 10 | return [ |
| 11 | + // if you want to extend some of the built-in classes, you can overwrite them using the components config option |
| 12 | + // and page methods or similar stuff will adapt. full customizability! |
| 13 | + 'components' => [ |
| 14 | + 'meta' => Meta::class, |
| 15 | + 'ai' => Ai::class, |
| 16 | + 'indexnow' => IndexNow::class, |
| 17 | + 'schema' => SchemaSingleton::class, |
| 18 | + ], |
7 | 19 | 'cascade' => [ |
8 | 20 | 'fields', |
9 | 21 | 'programmatic', |
|
50 | 62 | 'slack' |
51 | 63 | ], |
52 | 64 | 'robots' => [ |
53 | | - 'active' => true, // whether robots handling should be done by the plugin |
| 65 | + 'enabled' => true, // whether robots handling should be done by the plugin |
| 66 | + |
| 67 | + // @deprecated - please use robots.enabled |
| 68 | + 'active' => fn () => Seo::option('sitemap.enabled'), |
54 | 69 | 'followPageStatus' => true, // should unlisted pages be noindex by default? |
55 | 70 | 'pageSettings' => true, // whether to have robots settings on each page |
56 | 71 | 'index' => fn () => !option('debug'), // default site-wide robots setting |
|
59 | 74 | 'types' => ['index', 'follow', 'archive', 'imageindex', 'snippet'] // available robots types |
60 | 75 | ], |
61 | 76 | 'sitemap' => [ |
62 | | - 'active' => true, |
| 77 | + 'enabled' => true, |
| 78 | + // @deprecated - please use sitemap.enabled |
| 79 | + 'active' => fn () => Seo::option('sitemap.enabled'), |
63 | 80 | 'redirect' => true, // redirect /sitemap to /sitemap.xml |
64 | 81 | 'locale' => 'en', |
65 | 82 | 'generator' => require __DIR__ . '/options/sitemap.php', |
|
77 | 94 | 'trailingSlash' => false, // whether to add trailing slashes to canonical URLs (except for files) |
78 | 95 | ], |
79 | 96 | 'ai' => require __DIR__ . '/options/ai.php', |
| 97 | + 'indexnow' => [ |
| 98 | + 'enabled' => true, |
| 99 | + 'searchEngine' => 'https://api.indexnow.org' // one will propagate to all others. so this is fine @see https://www.indexnow.org/faq |
| 100 | + // TODO: add batch job delay |
| 101 | + // TODO: add propagation thing (i.e. do not only submit the current page but a 'team member' page will always affect the 'team' page) |
| 102 | + ], |
80 | 103 | 'generateSchema' => true, // whether to generate default schema.org data |
81 | 104 | 'locale' => 'en_US', // default locale, used for single-language sites |
82 | 105 | 'dateFormat' => null, // custom date format |
|
0 commit comments