sort by title, add og image and alt

This commit is contained in:
2026-05-05 20:20:07 -07:00
parent b7aa9a9a62
commit 439e207539
18 changed files with 220 additions and 190 deletions

View File

@ -75,4 +75,10 @@ export default function(eleventyConfig) {
eleventyConfig.addFilter("sortAlphabetically", strings =>
(strings || []).sort((b, a) => b.localeCompare(a))
);
/* Sort alphabetically by item title */
eleventyConfig.addFilter("sortAlphabeticallyByTitle", collection => {
collection.sort((b, a) => b.data.title.localeCompare(a.data.title));
return collection;
});
};