From 7d6b888c5b027c3282d03fc99e2f676709f665a9 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sat, 11 Jul 2026 09:51:38 +0200 Subject: [PATCH 1/2] fix(components): drop stale backdrop offset in bookshop examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The example-bookshop shortcode padded the preview section and passed a matching set of negative margins to the backdrop image via bg_class. That compensation was only correct while the image was laid out from its static position, inside the section content box. mod-blocks now pins the backdrop with inset: 0, so the image already covers the padding box. The negative margins shifted it out of the section, leaving a gap on the opposite edge. Remove them and let the section argument pass through untouched. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.8 (1M context) --- layouts/_shortcodes/example-bookshop.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/_shortcodes/example-bookshop.html b/layouts/_shortcodes/example-bookshop.html index e8d93ca7c..bc62346e7 100644 --- a/layouts/_shortcodes/example-bookshop.html +++ b/layouts/_shortcodes/example-bookshop.html @@ -38,7 +38,6 @@ {{- $content := .InnerDeindent -}} {{- $padding := partial "utilities/GetPadding.html" -}} {{- $sectionClass := printf "p-1 px-md-%d py-md-%d" $padding.x $padding.y -}} -{{- $bgClass := printf "m-n1 mx-md-n%d my-md-n%d" $padding.x $padding.y -}} {{- $data := "" -}} {{- $partial := "" -}} @@ -52,7 +51,7 @@ {{ $lang = (trim (index (split $content "\n") 2) "\x60") | default "yml" }} {{ $content = index (index $inputRE 0) 2 }} {{ $data = index (unmarshal $content) 0 }} - {{ $data = merge $data (dict "section_class" $sectionClass "bg_class" $bgClass) }} + {{ $data = merge $data (dict "section_class" $sectionClass) }} {{ $component_name := (index $data "_bookshop_name") }} {{ if not $component_name }} {{ errorf "Expected '_bookshop_name': %s" .Position -}} From 37ab7a70da0b322ad3a791583ba50f831f023244 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sat, 11 Jul 2026 10:07:40 +0200 Subject: [PATCH 2/2] fix: update Hugo module dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump mod-blocks to v1.23.6, which anchors a section backdrop to its own section whenever a backdrop is defined, instead of only when an overlay mode is set (gethinode/mod-blocks#143). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.8 (1M context) --- exampleSite/go.mod | 2 +- exampleSite/go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exampleSite/go.mod b/exampleSite/go.mod index e2645199d..843cbe018 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/FortAwesome/Font-Awesome v0.0.0-20260210181720-337dd2045d56 // indirect github.com/cloudcannon/bookshop/hugo/v3 v3.18.5 // indirect - github.com/gethinode/mod-blocks v1.23.5 // indirect + github.com/gethinode/mod-blocks v1.23.6 // indirect github.com/gethinode/mod-bootstrap-icons v1.4.4 // indirect github.com/gethinode/mod-cookieyes/v2 v2.2.6 // indirect github.com/gethinode/mod-docs v1.14.1 // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum index d79c6d28f..6409d21af 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -4,6 +4,8 @@ github.com/cloudcannon/bookshop/hugo/v3 v3.18.5 h1:AKWzUQpWcBSbJgHQ/5cfPQtGX40bn github.com/cloudcannon/bookshop/hugo/v3 v3.18.5/go.mod h1:s7mIonDhtsLcn10ZKuVXyqd6BDHI8vT1WQhZw8rPfY8= github.com/gethinode/mod-blocks v1.23.5 h1:nDEZ3995WNzNig1dnUfTtXtYm36K1ktbt5gckJhuD3U= github.com/gethinode/mod-blocks v1.23.5/go.mod h1:zSbs/OyzCDt4Kvn/9e1Zi8K1tweJANfibHUr/jcOrt4= +github.com/gethinode/mod-blocks v1.23.6 h1:Kg0RAlMhz2j1W60sERvHQyAa8H6UbNfMl9ZJajh/vKU= +github.com/gethinode/mod-blocks v1.23.6/go.mod h1:zSbs/OyzCDt4Kvn/9e1Zi8K1tweJANfibHUr/jcOrt4= github.com/gethinode/mod-bootstrap-icons v1.4.4 h1:ts9JkWlWYJ8fiPkMO5Ue6ym/2WM5V9Rq1qpAgSGnbxQ= github.com/gethinode/mod-bootstrap-icons v1.4.4/go.mod h1:ue9SPYxBc0NOoghr2qnWBz4NZF+sxOeb2sx+t9T2KKY= github.com/gethinode/mod-cookieyes/v2 v2.2.6 h1:/DQm8OYpms0On8wuosQER47TplVu/3z7MZHwbBKXCAg=