The code that runs my blog. Based on the eleventy-not-so-minimal-blog-starter
To run:
npm start
In debug mode:
DEBUG=* npx eleventy
To build
npm run build
{% image {src: "https://images.unsplash.com/photo-1555066931-4365d14bab8c", alt: "A laptop with some lines of code on the screen", className: "image", widths: [300, 600] } %}
I usually export images at max width set to 900, movies at 720p.