diff --git a/blueprints/fields/pinned.yml b/blueprints/fields/pinned.yml new file mode 100644 index 0000000..c6abc4e --- /dev/null +++ b/blueprints/fields/pinned.yml @@ -0,0 +1,9 @@ +type: fields + +fields: + pinned: + label: Pinned + type: toggle + text: + - "No" + - "Yes" diff --git a/blueprints/fields/show-on-home.yml b/blueprints/fields/show-on-home.yml new file mode 100644 index 0000000..21ba820 --- /dev/null +++ b/blueprints/fields/show-on-home.yml @@ -0,0 +1,10 @@ +type: fields + +fields: + showOnHome: + label: Show On Home + type: toggle + default: true + text: + - "No" + - "Yes" diff --git a/index.php b/index.php index 1356557..ed53b9e 100644 --- a/index.php +++ b/index.php @@ -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",