From 2e1e79ff66db20febe97283419f263864d554626 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Fri, 25 Sep 2026 12:47:17 -0700 Subject: [PATCH] permalink: true handling --- eleventy.config.js | 6 ++++++ 1 file changed, 6 insertions(+) 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();