{# Post grid component. Reads only ``maatlog.page_kind`` (guarded) to pick the card image presentation; every ``loop`` value the card needs is copied into the ``with`` arguments so post-card.html never touches the outer loop. #} {%- set _page_kind = maatlog.page_kind if maatlog is defined and maatlog.page_kind is defined else 'unknown' -%} {%- set _is_blog_top = _page_kind == 'home' or (maatlog is defined and maatlog.archive is defined and maatlog.archive and maatlog.archive.is_home) -%} {%- set _standalone_cards = _page_kind not in ['home', 'archive'] -%} {%- set heading = latest_heading if latest_heading is defined else "Older posts" -%} {%- if featured_cards is defined or latest_cards is defined -%} {%- set featured_list = featured_cards if featured_cards is defined else [] -%} {%- set latest_list = latest_cards if latest_cards is defined else [] -%} {%- if featured_list -%}
No posts yet. Add a document with maatlog metadata to see it listed here.
{%- endif -%} {%- elif cards -%} {%- set featured_n = featured_count if featured_count is defined else 0 -%} {%- if featured_n -%}No posts yet. Add a document with maatlog metadata to see it listed here.
{%- endif -%}