Create field blueprints for pinning content in a list and showing on the home page.

This commit is contained in:
2026-04-17 04:17:34 +10:00
parent aeaed44fcd
commit 1a5fe54439
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
type: fields
fields:
pinned:
label: Pinned
type: toggle
text:
- "No"
- "Yes"

View File

@@ -0,0 +1,10 @@
type: fields
fields:
showOnHome:
label: Show On Home
type: toggle
default: true
text:
- "No"
- "Yes"

View File

@@ -25,6 +25,8 @@ Kirby::plugin(
"fields/link-locations" => __DIR__ . "/blueprints/fields/link-locations.yml",
"fields/link-location" => __DIR__ . "/blueprints/fields/link-location.yml",
"fields/dates" => __DIR__ . "/blueprints/fields/dates.yml",
"fields/pinned" => __DIR__ . "/blueprints/fields/pinned.yml",
"fields/show-on-home" => __DIR__ . "/blueprints/fields/show-on-home.yml",
],
"snippets" => [
"navbar/primary" => __DIR__ . "/snippets/navbar/primary.php",