import
This commit is contained in:
27
www/eleventy.config.cjs
Normal file
27
www/eleventy.config.cjs
Normal file
@@ -0,0 +1,27 @@
|
||||
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
||||
|
||||
module.exports = function(eleventyConfig){
|
||||
|
||||
eleventyConfig.setServerPassthroughCopyBehavior("passthrough");
|
||||
eleventyConfig.addPassthroughCopy({
|
||||
"./node_modules/@picocss/pico/css/pico.min.*": "./",
|
||||
}, {debug: true})
|
||||
|
||||
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
|
||||
|
||||
eleventyConfig.addFilter(
|
||||
"debug",
|
||||
(content) =>
|
||||
`<pre>
|
||||
${require("node:util").inspect(content)}
|
||||
</pre>`
|
||||
);
|
||||
|
||||
eleventyConfig.addDataExtension("yml, yaml",
|
||||
contents => require('js-yaml').load(contents)
|
||||
)
|
||||
|
||||
if(process.env.NODE_ENV==="production"){
|
||||
eleventyConfig.addGlobalData('date', 'git Last Modified');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user