.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');
|
return collection.getFilteredByGlob(src+'/_articles/*.md');
|
||||||
});
|
});
|
||||||
|
|
||||||
eleventyConfig.addPassthroughCopy("src/_images");
|
eleventyConfig.addPassthroughCopy({ "src/_images" : "images" });
|
||||||
|
eleventyConfig.addPassthroughCopy({ "src/assets" : "assets" });
|
||||||
|
|
||||||
return {
|
return {
|
||||||
dir: {
|
dir: {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Hello!!
|
|||||||
{%- for post in collections.articles -%}
|
{%- for post in collections.articles -%}
|
||||||
<li>
|
<li>
|
||||||
{% if post.data.featured_image %}
|
{% 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 %}
|
{% endif %}
|
||||||
<a href="{{ post.url }}">{{ post.data.title }}</a></li>
|
<a href="{{ post.url }}">{{ post.data.title }}</a></li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user