.eleventy.js - pass through with rename of assets and images
rc/index.html - update path following passthrough rename
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -7,7 +7,7 @@ Hello!!
|
||||
{%- for post in collections.articles -%}
|
||||
<li>
|
||||
{% if post.data.featured_image %}
|
||||
<img width=100 height=100 src="_images/{{ post.data.featured_image }}">
|
||||
<img width=100 height=100 src="/images/{{ post.data.featured_image }}">
|
||||
{% endif %}
|
||||
<a href="{{ post.url }}">{{ post.data.title }}</a></li>
|
||||
{%- endfor -%}
|
||||
|
||||
Reference in New Issue
Block a user