Skip to content

Commit

Permalink
Specify layouts and includes directories in Eleventy config
Browse files Browse the repository at this point in the history
  • Loading branch information
natebass authored Aug 10, 2023
1 parent 67939f9 commit ff669ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Configuration for eleventy
* @parameter eleventyConfig
* @parameter config
*/
const eleventyConfig = config => {
config.ignores.add("README.md");
Expand All @@ -10,6 +10,12 @@ const eleventyConfig = config => {
config.addPassthroughCopy("css");
config.addPassthroughCopy("images");
config.addPassthroughCopy("js");
return {
dir: {
includes: "_includes",
layouts: "_layouts"
}
}
}

module.exports = eleventyConfig

0 comments on commit ff669ab

Please sign in to comment.