@rmdes/indiekit-post-type-page 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ {# Marker field that triggers post-type-discovery to identify as "page" #}
2
+ {{ input({
3
+ name: "page",
4
+ type: "text",
5
+ value: "true",
6
+ label: "Page Type Marker (DEBUG - should be hidden)"
7
+ }) | indent(2) }}
package/index.js CHANGED
@@ -9,7 +9,12 @@
9
9
 
10
10
  const defaults = {
11
11
  name: "Page",
12
+ // Discovery property - tells Indiekit how to identify this post type
13
+ // When a post has a "page" property, it's recognized as a page type
14
+ discovery: "page",
12
15
  fields: {
16
+ // Hidden marker field - triggers post-type-discovery to identify as "page"
17
+ page: { required: true },
13
18
  name: { required: true }, // Page title (e.g., "About", "Now", "Uses")
14
19
  summary: {}, // Optional page description
15
20
  content: { required: true }, // Page content
@@ -30,6 +35,7 @@ export default class PagePostType {
30
35
  return {
31
36
  name: this.options.name,
32
37
  h: "entry",
38
+ discovery: this.options.discovery,
33
39
  fields: this.options.fields,
34
40
  };
35
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-post-type-page",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Page post type for Indiekit - creates root-level slash pages like /about, /now, /uses",
5
5
  "keywords": [
6
6
  "indiekit",
@@ -22,6 +22,7 @@
22
22
  "type": "module",
23
23
  "main": "index.js",
24
24
  "files": [
25
+ "includes",
25
26
  "index.js"
26
27
  ],
27
28
  "repository": {