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= 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 -}}