Brian's Website

Made Images Work

  1. Made folder /src/images. Images will go there.
  2. In .eleventy.js, added a new passthrough for images, just below the passthrough for CSS:[1]
eleventyConfig.addPassthroughCopy('./src/images/');

Footnotes

  1. 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. `![alt text](/images/FILENAME)`) 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>.