<!-- 
    Copyright Â© 2024 - 2025 The Hinode Team / Mark Dumay. All rights reserved.
-->

{{/* Ingest bookshop bindings when applicable */}}
{{ if eq hugo.Environment "cloudcannon" }}
    {{ partial "bookshop_bindings" `.Params.content_blocks` }}
{{ end }}

{{/* Initialize arguments */}}
{{ $page := .page }}
{{ $blocks := slice }}
{{ $default := false }}
{{ if and $page.IsHome (in $page.Site.Params.modules.bookshop.hero.default "home") }}{{ $default = true }}{{ end }}
{{ if and $page.IsPage (in $page.Sit