Add <abbr> filter
This commit is contained in:
parent
286d3b7bdf
commit
ab831e429a
@ -91,6 +91,10 @@ export default async function (eleventyConfig) {
|
|||||||
return arr.slice(0, arr.length - 1);
|
return arr.slice(0, arr.length - 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
eleventyConfig.addFilter("abbr", (abbr, def) => {
|
||||||
|
return `<abbr title="${def}">${abbr}</abbr>`;
|
||||||
|
});
|
||||||
|
|
||||||
// Shortcodes
|
// Shortcodes
|
||||||
|
|
||||||
// Cowsay
|
// Cowsay
|
||||||
|
Loading…
x
Reference in New Issue
Block a user