From 9baac5c4e3a007b404bed28152c5a3586c5da03a Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 5 Feb 2025 15:11:15 -0600 Subject: [PATCH] Fix conflicts --- _config/filters.js | 3 +++ content/tags.njk | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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