Fingerprinted CSS and JS, images resized with srcset.
Everything in content/assets/ is copied to the site. CSS files in assets/css/ and JS files in assets/js/ get a content hash in their name, and every page is rewritten to use it, so they can be cached forever.
PNG and JPEG files in assets/images/ are written with a hashed name plus 480 and 960 pixel wide copies. Every <img src="/assets/images/..."> in the output gets the hashed src, a srcset, a width and a height.
The template below has a plain <img>. The live result shows what came out.
Live result This page is a static file, built once.
The tag your browser received for that image:
Needs JavaScript to show.
And for the stylesheet of this page:
Needs JavaScript to show.
Source the files behind the result above
content/alcoves/demo_plate/blueprint.html
<figure class="plate-demo">
<img src="/assets/images/frame.d2f2fe69.jpg" alt="A gilt frame on a damask wall, around a painted doorway" sizes="(min-width: 900px) 24rem, 100vw" loading="lazy">
</figure>
<p class="demo-sub">The tag your browser received for that image:</p>
<pre class="fetched" data-markup=".plate-demo img">Needs JavaScript to show.</pre>
<p class="demo-sub">And for the stylesheet of this page:</p>
<pre class="fetched" data-markup="link[rel=stylesheet]">Needs JavaScript to show.</pre>