SEO : add tombi mori plugin
This commit is contained in:
parent
df2843123f
commit
8f9e75126e
64 changed files with 3719 additions and 44 deletions
11
site/plugins/kirby-seo/config/pageMethods.php
Normal file
11
site/plugins/kirby-seo/config/pageMethods.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
use tobimori\Seo\Meta;
|
||||
use tobimori\Seo\SchemaSingleton;
|
||||
|
||||
return [
|
||||
'schema' => fn ($type) => SchemaSingleton::getInstance($type, $this),
|
||||
'schemas' => fn () => SchemaSingleton::getInstances($this),
|
||||
'metadata' => fn (?string $lang = null) => new Meta($this, $lang),
|
||||
'robots' => fn (?string $lang = null) => $this->metadata($lang)->robots(),
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue