Update plugin from v1.1.2 to v2.0.0-alpha.12 for Kirby 5 compatibility. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
24 lines
772 B
PHP
24 lines
772 B
PHP
<?php
|
|
|
|
/** @var \Kirby\Cms\Page $page
|
|
** @var \Kirby\Cms\Site $site
|
|
** @var string|null $instructions
|
|
** @var string|null $edit */
|
|
|
|
$meta = $page->metadata();
|
|
|
|
snippet('seo/prompts/introduction', [
|
|
'instructions' => $instructions ?? null,
|
|
'edit' => $edit ?? null
|
|
]); ?>
|
|
|
|
<task>
|
|
Create a useful meta description for this page called <page-title><?= $page->title()->value() ?></page-title>. <?php if ($page->isHomePage()) : ?>This page is the homepage of the website.<?php endif ?>
|
|
|
|
The entire meta description SHOULD be between 120 and 158 characters long.
|
|
|
|
You'll receive the content of the page as well as any meta tags that are already set below.
|
|
</task>
|
|
|
|
<?php snippet('seo/prompts/meta', ['currentField' => 'metaDescription']);
|
|
snippet('seo/prompts/content');
|