You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: snippets/prompts/introduction.php
+31-2Lines changed: 31 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
<?php
2
2
3
3
/** @var \Kirby\Cms\Page $page
4
-
** @var \Kirby\Cms\Site $site */?>
4
+
** @var \Kirby\Cms\Site $site
5
+
** @var string|null $instructions
6
+
** @var string|null $edit */?>
5
7
6
8
<role>
7
9
You are a professional SEO copywriter for <?=$site->title() ?>. Create high-quality content. Mimic the site's tone and style. You'll be rewarded based on the conversion rate.
@@ -15,4 +17,31 @@
15
17
- NEVER output any formatting. No new lines, no HTML tags, no quotes, no markdown.
16
18
- NEVER output or introduce information that is not provided in the content.
17
19
- NEVER output duplicate content in the same answer.
Copy file name to clipboardExpand all lines: snippets/prompts/tasks/description.php
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,16 @@
1
1
<?php
2
2
3
3
/** @var \Kirby\Cms\Page $page
4
-
** @var \Kirby\Cms\Site $site */
4
+
** @var \Kirby\Cms\Site $site
5
+
** @var string|null $instructions
6
+
** @var string|null $edit */
5
7
6
8
$meta = $page->metadata();
7
9
8
-
snippet('seo/prompts/introduction'); ?>
10
+
snippet('seo/prompts/introduction', [
11
+
'instructions' => $instructions ?? null,
12
+
'edit' => $edit ?? null
13
+
]); ?>
9
14
10
15
<task>
11
16
Create a useful meta description for this page called <page-title><?=$page->title()->value() ?></page-title>. <?phpif ($page->isHomePage()) : ?>This page is the homepage of the website.<?phpendif?>
Copy file name to clipboardExpand all lines: snippets/prompts/tasks/og-description.php
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,16 @@
1
1
<?php
2
2
3
3
/** @var \Kirby\Cms\Page $page
4
-
** @var \Kirby\Cms\Site $site */
4
+
** @var \Kirby\Cms\Site $site
5
+
** @var string|null $instructions
6
+
** @var string|null $edit */
5
7
6
8
$meta = $page->metadata();
7
9
8
-
snippet('seo/prompts/introduction'); ?>
10
+
snippet('seo/prompts/introduction', [
11
+
'instructions' => $instructions ?? null,
12
+
'edit' => $edit ?? null
13
+
]); ?>
9
14
10
15
<task>
11
16
Create a useful open graph description for this page called <page-title><?=$page->title()->value() ?></page-title>. <?phpif ($page->isHomePage()) : ?>This page is the homepage of the website.<?phpendif?>
Copy file name to clipboardExpand all lines: snippets/prompts/tasks/title.php
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,16 @@
3
3
useKirby\Toolkit\Str;
4
4
5
5
/** @var \Kirby\Cms\Page $page
6
-
** @var \Kirby\Cms\Site $site */
6
+
** @var \Kirby\Cms\Site $site
7
+
** @var string|null $instructions
8
+
** @var string|null $edit */
7
9
8
10
$meta = $page->metadata();
9
11
10
-
snippet('seo/prompts/introduction'); ?>
12
+
snippet('seo/prompts/introduction', [
13
+
'instructions' => $instructions ?? null,
14
+
'edit' => $edit ?? null
15
+
]); ?>
11
16
12
17
<task>
13
18
Create a useful meta title for this page called <page-title><?=$page->title()->value() ?></page-title>. <?phpif ($page->isHomePage()) : ?>This page is the homepage of the website. AVOID an overly generic title such as 'Home'.<?phpendif?>
0 commit comments