change how passthrough works

This commit is contained in:
N-Upchurch
2023-08-06 19:52:01 -05:00
parent 2fff7685e8
commit 233e3e6e43
16 changed files with 88 additions and 57 deletions

View File

@ -10,9 +10,6 @@ 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");
const figoptions = {
figcaption: true
};
@ -21,10 +18,6 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addWatchTarget("content/**/*.{svg,webp,png,jpeg}");
// App plugins
eleventyConfig.addPlugin(pluginDrafts);
eleventyConfig.addPlugin(pluginImages);
// Official plugins
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(pluginSyntaxHighlight, {
@ -46,7 +39,9 @@ module.exports = function(eleventyConfig) {
});
// Passthrough
eleventyConfig.addPassthroughCopy({ 'public/css/*': "/css/" });
eleventyConfig.addPassthroughCopy({ 'public/xsl/*': "/xsl/" });
eleventyConfig.addPassthroughCopy({ 'public/img/*': "/img/" });
// Get the first `n` elements of a collection.
eleventyConfig.addFilter("head", (array, n) => {