@rmdes/indiekit-endpoint-homepage 1.0.19 → 1.0.21

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.
Files changed (2) hide show
  1. package/index.js +39 -0
  2. 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",
@@ -171,6 +186,30 @@ export default class HomepageEndpoint {
171
186
  content: { type: "textarea", label: "Content (HTML/Markdown)" },
172
187
  },
173
188
  },
189
+ {
190
+ id: "posting-activity",
191
+ label: "Posting Activity",
192
+ description: "GitHub-style contribution graph showing posting frequency",
193
+ icon: "activity",
194
+ dataEndpoint: null, // Uses Eleventy collections
195
+ defaultConfig: {
196
+ title: "Posting Activity",
197
+ limit: 1,
198
+ },
199
+ configSchema: {
200
+ title: { type: "text", label: "Section title" },
201
+ years: {
202
+ type: "text",
203
+ label: "Years to show (comma-separated, e.g. 2026,2025)",
204
+ },
205
+ limit: {
206
+ type: "number",
207
+ label: "Number of years (ignored if specific years set)",
208
+ min: 0,
209
+ max: 10,
210
+ },
211
+ },
212
+ },
174
213
  ];
175
214
  }
176
215
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-homepage",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Homepage builder endpoint for Indiekit. Configure layout, sections, and sidebar widgets from the admin UI.",
5
5
  "keywords": [
6
6
  "indiekit",