diff --git a/eleventy.config.js b/eleventy.config.js index 61cfaaf..a21127a 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -90,6 +90,12 @@ export default async function (eleventyConfig) { } }); + /* Permalink: true handling */ + eleventyConfig.addPreprocessor("permalinkTrue", "md", (data, content) => { + if (data.permalink === true) delete data.permalink; + return content; + }) + /* Shortcodes */ eleventyConfig.addShortcode("currentBuildDate", () => { return new Date().toISOString();