45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
|
const pluginWebc = require("@11ty/eleventy-plugin-webc");
|
||
|
|
||
|
module.exports = function(ec) {
|
||
|
// Plugins
|
||
|
// add webc files by default
|
||
|
ec.addPlugin(pluginWebc, {components: "_includes/components/**/*.webc"});
|
||
|
|
||
|
return {
|
||
|
// Control which files Eleventy will process
|
||
|
// e.g.: *.md, *.njk, *.html, *.liquid
|
||
|
templateFormats: [
|
||
|
"md",
|
||
|
"njk",
|
||
|
"html",
|
||
|
"liquid"
|
||
|
],
|
||
|
|
||
|
// Pre-process *.md files with: (default: `liquid`)
|
||
|
markdownTemplateEngine: "njk",
|
||
|
|
||
|
// Pre-process *.html files with: (default: `liquid`)
|
||
|
htmlTemplateEngine: "njk",
|
||
|
|
||
|
// These are all optional:
|
||
|
dir: {
|
||
|
input: "content", // default: "."
|
||
|
includes: "../_includes", // default: "_includes"
|
||
|
data: "../_data", // default: "_data"
|
||
|
output: "_site"
|
||
|
},
|
||
|
|
||
|
// -----------------------------------------------------------------
|
||
|
// Optional items:
|
||
|
// -----------------------------------------------------------------
|
||
|
|
||
|
// If your site deploys to a subdirectory, change `pathPrefix`.
|
||
|
// Read more: https://www.11ty.dev/docs/config/#deploy-to-a-subdirectory-with-a-path-prefix
|
||
|
|
||
|
// When paired with the HTML <base> plugin https://www.11ty.dev/docs/plugins/html-base/
|
||
|
// it will transform any absolute URLs in your HTML to include this
|
||
|
// folder name and does **not** affect where things go in the output folder.
|
||
|
pathPrefix: "/",
|
||
|
};
|
||
|
}
|