{# @var craft \craft\web\twig\variables\CraftVariable #} {# @var entry \craft\elements\Entry #} {# -- Pages Default -- #} {# ---------------------------------------------------------------------- #} {% extends "_layouts/_master.html" %} {% set bodyClass = "p-twoColumns" %} {# -- CRITICAL CSS -- #} {% block appInlineCSS %} {% endblock %} {# -- App Content -- #} {% block appContent %} {# -- Cache -- #} {% cache globally using key _self ~ "-page-" ~ craft.app.request.pathInfo %} {# If you have a Template with Pagination use this: #} {# {% cache globally using key _self.getTemplateName() ~ '-archive-' ~ craft.app.request.pathInfo ~ (craft.app.request.pageNum ? '/p' ~ craft.app.request.pageNum : '') %} #} {% embed '_embeds/twoColumns/_template.html' with { opt: { intro: true, content: true, sidebar: true }, entry: entry } only %} {# -- Block: Intro -- #} {% block intro %} {# -- Include Page Title -- #} {% include '_molecules/pageTitle/_template.html' with { opt: { object: entry, size: 'h1' } } only %} {# -- Entry Intro -- #} {% if entry.entryIntroText ?? null %} {% include '_atoms/richText/_template.html' with { opt: { text: entry.entryIntroText } } only %} {% endif %} {# -- Image Entry -- #} {% if entry.entryImage.one() ?? null %} {% include '_atoms/headline/_template.html' with { opt: { text: 'Image Entry', size: 'h3' } } only %} {% include '_organisms/imageSingle/_template.html' with { opt: { image: entry.entryImage.one() ?? null, ratio: 'landscape' } } only %} {% endif %} {% endblock %} {# -- Block: Content -- #} {% block content %} {# -- Content Builder -- #} {% include '_contentBuilders/_contentBuilderMatrix.html' with { opt: { object: entry, context: '12:16' } } only %} {% endblock %} {# -- Block: Sidebar -- #} {% block sidebar %} {% include '_atoms/headline/_template.html' with { opt: { text: 'Sidebar' } } only %} {% endblock %} {% endembed %} {# -- Cache End -- #} {% endcache %} {% endblock %}