{%- macro renderBlogListings(pieces, options) -%} {%- if pieces -%} {%- else -%}

{{ __('There are no blog posts yet.') }}

{%- endif -%} {%- endmacro -%} {%- macro renderBlogListing(piece) -%} {% set image = apos.images.first(piece) or null %}
  • {%- if image -%} {%- endif -%}
    {{ piece.publishedAt | date('MMM DD, YYYY' ) }}
    {# #}
    {{ piece.title | e }}
    {% if piece.authorId %}
    by {{ piece._author.title }}
    {% endif %}
    {{ apos.sandbox.areaToPlainText(piece, 'main') | truncate(200) }}
    {#
    {{ apos.singleton(piece, 'main', 'apostrophe-rich-text', { edit: false, truncate: 50 } ) }}
    #} Read More
  • {%- endmacro -%} {%- macro blogCard(piece) -%}
    {{ apos.singleton(piece, 'slideshow', 'apostrophe-images', { limit: 1, aspectRatio: [324, 162], noHeight: true, edit: false, size: 'one-third' }) }}
    {{ piece.title }}
    {% if piece.authorId %} by {{ piece._author.title }} {% endif %}

    {{ apos.sandbox.areaToPlainText(piece, 'main', { truncate: 300 }) }}

    Read More
    {{ piece.publishedAt | date('MMM Do, YYYY') }}
    {%- endmacro -%}