{% extends 'apostrophe-templates:layout.html' %} {% import 'macros/blogMacros.html' as blog %} {% block bodyClass %} demo-blog-index-page{% endblock %} {% block headerMessage %}You are on the "Blog Index" template of the Apostrophe demo site.{% endblock %} {% block upperClass %}bg-gold{% endblock %} {% block title %}Apostrophe Sandbox: {{ data.page.title | e }}{% endblock %} {% import 'apostrophe-pager:macros.html' as pager %} {% block headerContent %}
{{ apos.singleton(data.page, 'pageHeader', 'apostrophe-rich-text', { toolbar: [ 'Styles', 'Bold', 'Italic', 'Blockquote', 'Link', 'Anchor', 'Unlink', 'BulletedList' ], styles: [ { name: 'Title', element: 'h3' }, { name: 'Subtitle', element: 'h4' } ] }) }}
{# #}
{{ apos.singleton(data.page, 'sticker', 'apostrophe-images', { limit: 1, aspectRatio: [1, 1] }) }} Apostrophe
{% endblock %} {% block mainContent %}
{# {% if data.page._edit %}
{% endif %} #} {{ blog.renderBlogListings(data.pieces) }}
{{ pager.render({ page: data.currentPage, total: data.totalPages }, '#') }}
{% endblock %}