Add <abbr> filter

This commit is contained in:
Nathan Upchurch 2025-05-06 14:44:42 -05:00
parent 286d3b7bdf
commit ab831e429a

View File

@ -91,6 +91,10 @@ export default async function (eleventyConfig) {
return arr.slice(0, arr.length - 1);
});
eleventyConfig.addFilter("abbr", (abbr, def) => {
return `<abbr title="${def}">${abbr}</abbr>`;
});
// Shortcodes
// Cowsay