From 65813f28f56a5cfa05a1ba5cee52dbe43b7806ed Mon Sep 17 00:00:00 2001 From: Nick Stokoe Date: Tue, 9 May 2023 14:30:07 +0100 Subject: [PATCH] .eleventy.js - pass through with rename of assets and images rc/index.html - update path following passthrough rename --- .eleventy.js | 3 ++- src/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 6fe690c..b50d394 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -5,7 +5,8 @@ module.exports = function(eleventyConfig) { return collection.getFilteredByGlob(src+'/_articles/*.md'); }); - eleventyConfig.addPassthroughCopy("src/_images"); + eleventyConfig.addPassthroughCopy({ "src/_images" : "images" }); + eleventyConfig.addPassthroughCopy({ "src/assets" : "assets" }); return { dir: { diff --git a/src/index.html b/src/index.html index db85f0e..c65151b 100644 --- a/src/index.html +++ b/src/index.html @@ -7,7 +7,7 @@ Hello!! {%- for post in collections.articles -%}
  • {% if post.data.featured_image %} - + {% endif %} {{ post.data.title }}
  • {%- endfor -%}