mirror of
https://github.com/Theodor-Springmann-Stiftung/jacoblenz.git
synced 2025-10-28 16:55:33 +00:00
25 lines
861 B
JavaScript
25 lines
861 B
JavaScript
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
|
|
|
|
module.exports = function (config) {
|
|
|
|
// Uses the semi-official "navigation"-plugin for eleventy
|
|
config.addPlugin(eleventyNavigationPlugin);
|
|
|
|
// Set static folder, which copntent will be copied to the output folder
|
|
config.addPassthroughCopy({ "src/static/": "/" });
|
|
|
|
return {
|
|
// Set custom directories for dynamic pages, data, includes, layouts and finally the generated output
|
|
dir:
|
|
{
|
|
input: "src/dynamic",
|
|
layouts: "../layouts",
|
|
includes: "../includes",
|
|
data: "../data",
|
|
output: "dist"
|
|
},
|
|
|
|
// Set template formats so that other files won't be included in dist
|
|
templateFormats: ["njk", "md", "html"]
|
|
};
|
|
}; |