{{ partial:components/molecules/blocks/container }}
    {{ partial:components/molecules/navigation/breadcrumbs }}
{{ /partial:components/molecules/blocks/container }}

{{
    partial
    src="components/organisms/blocks/page-header"
    title="{header_title ?? title}"
    asset="{header_asset ?? thumbnail}"
    content="{header_content}"
}}

{{ if mount }}
    {{ partial:components/molecules/blocks/container :container_bg="['color' => 'bg-primary-100']" :padding="['y' => 'md']"  }}
        <div class="mb-5">
            {{ collection:count in="{mount}" }} {{ trans key="{mount}" }}
        </div>
        {{ collection from="{mount}" paginate="12" as="entries" }}
            {{ unless no_results }}
                {{ partial src="components/organisms/lists/grid-list" }}
            {{ /unless }}
            {{ partial src="components/molecules/navigation/pagination" }}
        {{ /collection }}
    {{ /partial:components/molecules/blocks/container }}
{{ /if }}

{{ content }}
    {{ if {partial:exists src="components/organisms/content/{type}" } }}
        {{ partial src="components/organisms/content/{type}" }}
    {{ else }}
        {{ partial:components/molecules/blocks/container classes="my-5 md:my-10 lg:my-20" }}
            {{ partial:components/molecules/content/{type} }}
        {{/partial:components/molecules/blocks/container }}
    {{ /if }}
{{ /content }}

{{ if {parent:mount} }}
    {{ collection from="{parent:mount}" as="entries" sort="date:desc" limit="3" :id:isnt="id" }}
        {{ unless no_results }}
            {{ partial:components/molecules/blocks/container
                :container_bg="['color' => (page_bg:color ?? theme:bg:color ?? 'bg-primary-100')]"
                :padding="['y' => 'md']" classes="mt-12"
            }}
                {{ partial:components/atoms/text/heading tag="h2" size="xl" weight="font-extrabold" classes="mb-8 md:mb-10" }}
                    {{ trans key="Maybe also interesting for you" }}
                {{ /partial:components/atoms/text/heading }}
                {{ partial src="components/organisms/lists/grid-list" }}
                <div class="flex justify-end mt-10">
                    <a
                        href="{{ parent:url }}"
                        class="font-bold underline decoration-[3px] underline-offset-[6px] hover:no-underline"
                    >
                        {{ trans key="View all" }} {{ collection:count in="{parent:mount}" }} {{ trans key="{ parent:mount }" }}
                    </a>
                </div>
            {{ /partial:components/molecules/blocks/container }}
        {{ /unless }}
    {{ /collection }}
{{ /if }}

