permalink: true handling

This commit is contained in:
inherentlee committed 2026-09-25 12:47:17 -07:00
1 parent 3d2cba78de
commit 2e1e79ff66
1 file changed
+6
+6
View File
@@ -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 */ /* Shortcodes */
eleventyConfig.addShortcode("currentBuildDate", () => { eleventyConfig.addShortcode("currentBuildDate", () => {
return new Date().toISOString(); return new Date().toISOString();