feat: intégration plugin Kirby SEO
All checks were successful
Deploy / Deploy to Production (push) Successful in 22s
All checks were successful
Deploy / Deploy to Production (push) Successful in 22s
- Ajout de tobimori/kirby-seo via Composer
- snippet('seo/head') dans header.php (remplace les meta manuels)
- snippet('seo/schemas') dans footer.php pour JSON-LD
- Onglet SEO ajouté dans site.yml et tous les blueprints de pages
- Configuration SEO dans config.php (sitemap, robots, canonicalBase TODO)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
baab2fb3a1
commit
58c31ea391
133 changed files with 9201 additions and 253 deletions
95
site/plugins/kirby-seo/blueprints/site.php
Normal file
95
site/plugins/kirby-seo/blueprints/site.php
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
<?php
|
||||
|
||||
use tobimori\Seo\Seo;
|
||||
|
||||
return [
|
||||
'label' => 'seo.tabs.seo',
|
||||
'icon' => 'search',
|
||||
'columns' => [
|
||||
'main' => [
|
||||
'width' => '7/12',
|
||||
'fields' => [
|
||||
'_metaHeadline' => [
|
||||
'label' => 'seo.site.meta.headline',
|
||||
'type' => 'headline',
|
||||
'help' => 'seo.site.meta.headline.help'
|
||||
],
|
||||
'metaTemplate' => [
|
||||
'extends' => 'seo/fields/title-template',
|
||||
'label' => 'seo.fields.metaTitleTemplate.label',
|
||||
'help' => 'seo.fields.metaTitleTemplate.help'
|
||||
],
|
||||
'metaDescription' => [
|
||||
'label' => 'seo.fields.metaDescription.label',
|
||||
'type' => 'seo-writer',
|
||||
'ai' => 'site-description',
|
||||
'help' => 'seo.fields.metaDescription.help'
|
||||
],
|
||||
'_seoLine1' => [
|
||||
'type' => 'line'
|
||||
],
|
||||
'_ogHeadline' => [
|
||||
'label' => 'seo.site.og.headline',
|
||||
'type' => 'headline',
|
||||
'numbered' => false,
|
||||
'help' => 'seo.site.og.headline.help'
|
||||
],
|
||||
'ogTemplate' => [
|
||||
'extends' => 'seo/fields/title-template',
|
||||
'label' => 'seo.fields.ogTitleTemplate.label',
|
||||
'default' => '{{ title }}',
|
||||
'help' => 'seo.fields.metaTitleTemplate.help',
|
||||
'placeholder' => '{{ site.metaTemplate }}'
|
||||
],
|
||||
'ogDescription' => [
|
||||
'label' => 'seo.fields.ogDescription.label',
|
||||
'type' => 'seo-writer',
|
||||
'ai' => 'og-site-description',
|
||||
'placeholder' => '{{ site.metaDescription }}'
|
||||
],
|
||||
'ogSiteName' => [
|
||||
'label' => 'seo.fields.ogSiteName.label',
|
||||
'type' => 'text',
|
||||
'default' => '{{ site.title }}',
|
||||
'placeholder' => '{{ site.title }}',
|
||||
'width' => '1/2'
|
||||
],
|
||||
'ogImage' => [
|
||||
'label' => 'seo.fields.ogImage.label',
|
||||
'extends' => 'seo/fields/og-image',
|
||||
'empty' => 'seo.fields.ogImage.empty',
|
||||
'width' => '1/2'
|
||||
],
|
||||
'cropOgImage' => [
|
||||
'label' => 'seo.fields.cropOgImage.label',
|
||||
'type' => 'toggle',
|
||||
'default' => true,
|
||||
'text' => [
|
||||
"{{ t('seo.common.no') }}",
|
||||
"{{ t('seo.common.yes') }}"
|
||||
],
|
||||
'help' => 'seo.fields.cropOgImage.help'
|
||||
],
|
||||
'_seoLine2' => [
|
||||
'type' => 'line'
|
||||
],
|
||||
'robots' => 'seo/fields/site-robots',
|
||||
'socialMediaAccounts' => 'seo/fields/social-media'
|
||||
]
|
||||
],
|
||||
'sidebar' => [
|
||||
'width' => '5/12',
|
||||
'sticky' => true,
|
||||
'sections' => [
|
||||
'seoPreview' => [
|
||||
'type' => 'seo-preview'
|
||||
],
|
||||
...(Seo::option('searchConsole.enabled') ? [
|
||||
'seoSearchConsole' => [
|
||||
'type' => 'seo-search-console'
|
||||
]
|
||||
] : [])
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue