@rmdes/indiekit-endpoint-homepage 1.0.20 → 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.
- package/index.js +24 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -186,6 +186,30 @@ export default class HomepageEndpoint {
|
|
|
186
186
|
content: { type: "textarea", label: "Content (HTML/Markdown)" },
|
|
187
187
|
},
|
|
188
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
|
+
},
|
|
189
213
|
];
|
|
190
214
|
}
|
|
191
215
|
|
package/package.json
CHANGED