Skip to content

Commit

Permalink
fix: layout demo typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemai2awesome committed Sep 17, 2021
1 parent 9dfc62c commit 630f702
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
Expand Up @@ -192,7 +192,10 @@
{% set twig_markup %}
{% verbatim %}
{% include '@bolt-layouts-layout/layout.twig' with {
template: '67/33@from-small 75/25@from-medium',
template: [
'67/33@from-small',
'75/25@from-medium',
],
...
} only %}
{% endverbatim %}
Expand Down
Expand Up @@ -55,7 +55,9 @@
{% endset %}
{% include '@bolt-layouts-layout/layout.twig' with {
content: layout_items,
template: 'full-vertical-push-last-item',
template: [
'full-vertical-push-last-item',
],
} only %}
{% endset %}

Expand All @@ -70,7 +72,9 @@
{% endset %}
{% include '@bolt-layouts-layout/layout.twig' with {
content: layout_items,
template: 'halves@from-small',
template: [
'halves@from-small',
],
} only %}
{% endverbatim %}
{% endset %}
Expand Down
Expand Up @@ -8,7 +8,7 @@
{% endset %}

{% set demo %}
{% set schema = bolt.data.components['@bolt-layouts-layout'].schema %}
{% set schema = bolt.data.components['@bolt-layouts-layout'].schema['layout'] %}
{% for alignment in schema.properties.align_items.enum %}
<bolt-layout template="75" align-items="{{ alignment }}">
<bolt-layout-item>
Expand All @@ -21,7 +21,9 @@
{% set twig_markup %}
{% verbatim %}
{% include '@bolt-layouts-layout/layout.twig' with {
template: '75',
template: [
'75',
],
align_items: 'center',
...
} only %}
Expand Down
Expand Up @@ -9,7 +9,7 @@
{% endset %}

{% set demo %}
{% set schema = bolt.data.components['@bolt-layouts-layout'].schema %}
{% set schema = bolt.data.components['@bolt-layouts-layout'].schema['layout'] %}
{% for alignment in schema.properties.valign_items.enum %}
<bolt-text headline font-size="xxsmall" text-transform="uppercase" letter-spacing="wide">Vertically aligned {{ alignment }}</bolt-text>
<bolt-layout template="halves" valign-items="{{ alignment }}" padding-top="none">
Expand All @@ -30,7 +30,9 @@
{% set twig_markup %}
{% verbatim %}
{% include '@bolt-layouts-layout/layout.twig' with {
template: 'halves',
template: [
'halves',
],
valign_items: 'center',
...
} only %}
Expand Down
Expand Up @@ -136,7 +136,9 @@

{% include '@bolt-layouts-layout/layout.twig' with {
content: layout_items,
template: 'halves',
template: [
'halves',
],
} only %}
{% endverbatim %}
{% endset %}
Expand Down
Expand Up @@ -45,7 +45,9 @@

{% include '@bolt-layouts-layout/layout.twig' with {
content: layout_items,
template: 'thirds@from-small',
template: [
'thirds@from-small',
],
} only %}
{% endverbatim %}
{% endset %}
Expand Down

0 comments on commit 630f702

Please sign in to comment.