Made Images Work
- Made folder
/src/images. Images will go there. - In
.eleventy.js, added a new passthrough for images, just below the passthrough for CSS:[1]
eleventyConfig.addPassthroughCopy('./src/images/');
Footnotes
-
To use an image, put the file in the `/images` folder and then add the image to whatever page you like using Markdown (e.g. ``) or HTML (e.g.
<img src="/images/FILENAME" alt="alt text">). I like HTML for this because it is easier to center images by placing the<img>within<p align="center"></p>.↩