From 5ec08b9765304f1690ffc9d33300adf752b00a9a Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Tue, 28 Mar 2023 11:50:12 -0500 Subject: [PATCH] Style changes to config --- eleventy.config.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/eleventy.config.js b/eleventy.config.js index e06e432..3fba4b7 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -7,6 +7,9 @@ const pluginBundle = require("@11ty/eleventy-plugin-bundle"); const pluginNavigation = require("@11ty/eleventy-navigation"); const { EleventyHtmlBasePlugin } = require("@11ty/eleventy"); +const pluginDrafts = require("./eleventy.config.drafts.js"); +const pluginImages = require("./eleventy.config.images.js"); + module.exports = function(eleventyConfig) { // Copy the contents of the `public` folder to the output folder // For example, `./public/css/` ends up in `_site/css/` @@ -22,8 +25,8 @@ module.exports = function(eleventyConfig) { eleventyConfig.addWatchTarget("content/**/*.{svg,webp,png,jpeg}"); // App plugins - eleventyConfig.addPlugin(require("./eleventy.config.drafts.js")); - eleventyConfig.addPlugin(require("./eleventy.config.images.js")); + eleventyConfig.addPlugin(pluginDrafts); + eleventyConfig.addPlugin(pluginImages); // Official plugins eleventyConfig.addPlugin(pluginRss); @@ -104,7 +107,7 @@ module.exports = function(eleventyConfig) { "md", "njk", "html", - "liquid" + "liquid", ], // Pre-process *.md files with: (default: `liquid`) @@ -115,7 +118,7 @@ module.exports = function(eleventyConfig) { // These are all optional: dir: { - input: "content", // default: "." + input: "content", // default: "." includes: "../_includes", // default: "_includes" data: "../_data", // default: "_data" output: "_site"