e.Params.modules.bookshop.hero.default "page") }}{{ $default = true }}{{ end }}
{{ if and $page.IsSection (in $page.Site.Params.modules.bookshop.hero.default "section") }}{{ $default = true }}{{ end }}

{{/* Insert a default hero and article block (for list pages) when no content blocks are available */}}
{{ if and .blocks (gt (len .blocks) 0 )}}
    {{ range $i, $b := .blocks }}
        {{ $blocks = $blocks | append (merge (dict "_ordinal" $i) $b) }}
    {{ end }}
{{ else if $default }}
    {{ $err := (has