Implement status function

This commit is contained in:
2026-01-07 13:57:51 -06:00
parent ba661426c0
commit 57cc65e31e
11 changed files with 204 additions and 0 deletions

View File

@@ -76,6 +76,15 @@ export default async function (eleventyConfig) {
return arr.slice(1, arr.length);
});
eleventyConfig.addCollection("priorThoughts", async (collectionApi) => {
const arr = [...collectionApi.getFilteredByTag("status")].sort(
function (a, b) {
return b.date - a.date;
},
);
return arr.slice(1, arr.length);
});
// Transforms
eleventyConfig.addTransform("prettier", function (content, outputPath) {
if (outputPath && outputPath.endsWith(".html")) {