From 5254cdc36b72b5172874c411261b00075dcf39e4 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Fri, 16 Oct 2026 17:19:03 -0700 Subject: [PATCH 1/2] Shop: pick a product photo to see it large Product pages put a small copy of every photo under the large one. Picking one, with a click or the arrow keys, shows it large. Plain radio buttons and CSS do it, with no script; a product with one photo shows no row. --- internal/packs/bundled_test.go | 2 +- packs/shop/assets/shop.css | 39 ++++++++++++++++++++++++++++++--- packs/shop/layouts/product.html | 15 ++++++++++--- packs/shop/pack.yaml | 6 ++++- 4 files changed, 54 insertions(+), 8 deletions(-) diff --git a/internal/packs/bundled_test.go b/internal/packs/bundled_test.go index 0ade0cb..afc9d6d 100644 --- a/internal/packs/bundled_test.go +++ b/internal/packs/bundled_test.go @@ -178,7 +178,7 @@ func TestBundledPacksBuildAndPass(t *testing.T) { "picks/index.html": {"Penguin picks", `data-product="/products/tee/"`, `data-product="/products/cap/"`, `href="/tags/linux/">All Linux things`}, "products/print/index.html": {`href="https://buy.stripe.com/a4" rel="noopener">Matte · A4 · $30.00`, `Matte · A3 · sold out`}, "products/index.html": {`href="/products/kit/"`, "$24.00", "€12.00 · Sold out"}, - "products/kit/index.html": {`href="https://buy.stripe.com/test_1" rel="noopener">Buy`, "With a basket · $39.50", `alt="The card"`, `"@type":"Product"`, `"priceCurrency":"USD"`, `"price":"24.00"`, "InStock"}, + "products/kit/index.html": {`href="https://buy.stripe.com/test_1" rel="noopener">Buy`, `
`, `