full-vertical-push-last-item
creates a vertical layout that is 100% height, and its last item is pushed to the bottom. This particular template serves a specific purpose and does not work with the layout’s vertical and horizontal alignments.
// Set up nested layout
{% set nested_layout %}
{% set layout_items %}
{% include '@bolt-layouts-layout/layout-item.twig' with {
content: 'Layout item'
} only %}
{% include '@bolt-layouts-layout/layout-item.twig' with {
content: 'Layout item'
} only %}
{% endset %}
{% include '@bolt-layouts-layout/layout.twig' with {
content: layout_items,
template: [
'full-vertical-push-last-item',
],
} only %}
{% endset %}
// Pass nested layouts to parent layout
{% set layout_items %}
{% include '@bolt-layouts-layout/layout-item.twig' with {
content: nested_layout
} only %}
{% include '@bolt-layouts-layout/layout-item.twig' with {
content: nested_layout
} only %}
{% endset %}
{% include '@bolt-layouts-layout/layout.twig' with {
content: layout_items,
template: [
'halves@from-small',
],
} only %}
<bolt-layout template="halves@from-small">
<bolt-layout-item>
<bolt-layout template="full-vertical-push-last-item">
<bolt-layout-item>
<!-- Content goes here -->
</bolt-layout-item>
<bolt-layout-item>
<!-- Content goes here -->
</bolt-layout-item>
</bolt-layout>
</bolt-layout-item>
<bolt-layout-item>
<bolt-layout template="full-vertical-push-last-item">
<bolt-layout-item>
<!-- Content goes here -->
</bolt-layout-item>
<bolt-layout-item>
<!-- Content goes here -->
</bolt-layout-item>
</bolt-layout>
</bolt-layout-item>
</bolt-layout>