generated from inherentlee/11ty
permalink: true handling
This commit is contained in:
1 parent
3d2cba78de
commit
2e1e79ff66
1 file changed
+6
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user