@rmdes/indiekit-endpoint-homepage 1.0.19 → 1.0.20
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.
- package/index.js +15 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -143,6 +143,21 @@ export default class HomepageEndpoint {
|
|
|
143
143
|
showSocialLinks: { type: "boolean", label: "Show social links" },
|
|
144
144
|
},
|
|
145
145
|
},
|
|
146
|
+
{
|
|
147
|
+
id: "featured-posts",
|
|
148
|
+
label: "Featured Posts",
|
|
149
|
+
description: "Curated posts pinned as featured",
|
|
150
|
+
icon: "star",
|
|
151
|
+
dataEndpoint: null, // Uses Eleventy featuredPosts collection
|
|
152
|
+
defaultConfig: {
|
|
153
|
+
maxItems: 6,
|
|
154
|
+
showSummary: true,
|
|
155
|
+
},
|
|
156
|
+
configSchema: {
|
|
157
|
+
maxItems: { type: "number", label: "Max items", min: 1, max: 20 },
|
|
158
|
+
showSummary: { type: "boolean", label: "Show post summary" },
|
|
159
|
+
},
|
|
160
|
+
},
|
|
146
161
|
{
|
|
147
162
|
id: "recent-posts",
|
|
148
163
|
label: "Recent Posts",
|
package/package.json
CHANGED