Refactor: Reconfigured Directory Structure & Installed 11ty
This commit refactors the project's directory structure to better align with a static site generator (SSG) workflow. The source files have been moved into a dedicated src directory, and Eleventy has been installed as the new SSG.
This commit is contained in:
14
.eleventy.js
Normal file
14
.eleventy.js
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = function (eleventyConfig) {
|
||||
// ✅ Pass through static assets to the root of output
|
||||
eleventyConfig.addPassthroughCopy({ "src/images": "images" });
|
||||
eleventyConfig.addPassthroughCopy({ "src/styles": "styles" });
|
||||
eleventyConfig.addPassthroughCopy({ "src/scripts": "scripts" });
|
||||
|
||||
return {
|
||||
dir: {
|
||||
input: "src",
|
||||
output: "_site",
|
||||
includes: "_includes",
|
||||
},
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user