diff --git a/internal/web/templates/images.html b/internal/web/templates/images.html index 62fb3f3..7eed0fe 100644 --- a/internal/web/templates/images.html +++ b/internal/web/templates/images.html @@ -130,8 +130,10 @@ } }); + // Newest first, and a batch in its own order: the last of it is + // prepended first. function show(items, seed, body) { - items.forEach((it, i) => { + items.map((it, i) => [it, i]).reverse().forEach(([it, i]) => { const src = "data:image/png;base64," + it.b64_json; const fig = document.createElement("figure"); const img = document.createElement("img");