diff --git a/_config/filters.js b/_config/filters.js index 4af2fe8..3f247fb 100644 --- a/_config/filters.js +++ b/_config/filters.js @@ -37,4 +37,7 @@ export default function(eleventyConfig) { return (tags || []).filter(tag => ["all", "posts"].indexOf(tag) === -1); }); + eleventyConfig.addFilter("sortAlphabetically", strings => + (strings || []).sort((b, a) => b.localeCompare(a)) + ); }; diff --git a/content/tags.njk b/content/tags.njk index 2423935..5346f27 100644 --- a/content/tags.njk +++ b/content/tags.njk @@ -1,7 +1,7 @@

Tags