From 3bc945d5234bfc2584d99eb30e46c6d24dbebb1c Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Fri, 15 Jul 2022 14:53:32 -0500 Subject: [PATCH] Use a `public` folder here but this could be anything --- .eleventy.js | 6 +++--- {css => public/css}/index.css | 0 {css => public/css}/prism-base16-monokai.dark.css | 0 {css => public/css}/prism-diff.css | 0 {img => public/img}/.gitkeep | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename {css => public/css}/index.css (100%) rename {css => public/css}/prism-base16-monokai.dark.css (100%) rename {css => public/css}/prism-diff.css (100%) rename {img => public/img}/.gitkeep (100%) diff --git a/.eleventy.js b/.eleventy.js index e7bf6da..741af7f 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -8,9 +8,9 @@ const { EleventyI18nPlugin } = require("@11ty/eleventy"); module.exports = function(eleventyConfig) { eleventyConfig.ignores.add("README.md"); - // Copy the `img` and `css` folders to the output - eleventyConfig.addPassthroughCopy("img"); - eleventyConfig.addPassthroughCopy("css"); + // Copy the contents of the `public` folder to the output folder + // For example, `./public/css/` ends up in `_site/css/` + eleventyConfig.addPassthroughCopy({"./public/": "/"}); // Add plugins eleventyConfig.addPlugin(pluginRss); diff --git a/css/index.css b/public/css/index.css similarity index 100% rename from css/index.css rename to public/css/index.css diff --git a/css/prism-base16-monokai.dark.css b/public/css/prism-base16-monokai.dark.css similarity index 100% rename from css/prism-base16-monokai.dark.css rename to public/css/prism-base16-monokai.dark.css diff --git a/css/prism-diff.css b/public/css/prism-diff.css similarity index 100% rename from css/prism-diff.css rename to public/css/prism-diff.css diff --git a/img/.gitkeep b/public/img/.gitkeep similarity index 100% rename from img/.gitkeep rename to public/img/.gitkeep