Skip to content

Commit

Permalink
Rename tiered list macro
Browse files Browse the repository at this point in the history
  • Loading branch information
pastelcyborg committed Aug 28, 2024
1 parent af6a3d8 commit f7093bf
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion templates/_macros/vf_tiered-list.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# list_item_title_[1-25]: title element of each child list item
# list_item_description_[1-25]: description element of each child list item
# cta: CTA block element
{% macro tiered_list(
{% macro vf_tiered_list(
is_description_full_width_on_desktop=true,
is_list_full_width_on_tablet=true) -%}
{%- set title_content = caller('title') -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "_layouts/examples.html" %}
{% from "_macros/tiered-list.jinja" import tiered_list %}
{% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %}

{% block title %}Tiered list / 50/50 on desktop with description CTA{% endblock %}

{% block standalone_css %}patterns_all{% endblock %}

{% block content %}
{%- call(slot) tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=true) -%}
{%- call(slot) vf_tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=true) -%}
{%- if slot == 'title' -%}
<h2>H2 - up to two lines; ideally one.</h2>
{%- endif -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "_layouts/examples.html" %}
{% from "_macros/tiered-list.jinja" import tiered_list %}
{% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %}

{% block title %}Tiered list / 50/50 on desktop with description{% endblock %}

{% block standalone_css %}patterns_all{% endblock %}

{% block content %}
{%- call(slot) tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=true) -%}
{%- call(slot) vf_tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=true) -%}
{%- if slot == 'title' -%}
<h2>H2 - up to two lines; ideally one.</h2>
{%- endif -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "_layouts/examples.html" %}
{% from "_macros/tiered-list.jinja" import tiered_list %}
{% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %}

{% block title %}Tiered list / 50/50 on desktop with list item CTA{% endblock %}

{% block standalone_css %}patterns_all{% endblock %}

{% block content %}
{%- call(slot) tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=true) -%}
{%- call(slot) vf_tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=true) -%}
{%- if slot == 'title' -%}
<h2>H2 - up to two lines; ideally one.</h2>
{%- endif -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "_layouts/examples.html" %}
{% from "_macros/tiered-list.jinja" import tiered_list %}
{% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %}

{% block title %}Tiered list / 50/50 on tablet with description{% endblock %}

{% block standalone_css %}patterns_all{% endblock %}

{% block content %}
{%- call(slot) tiered_list(is_description_full_width_on_desktop=true, is_list_full_width_on_tablet=false) -%}
{%- call(slot) vf_tiered_list(is_description_full_width_on_desktop=true, is_list_full_width_on_tablet=false) -%}
{%- if slot == 'title' -%}
<h2>H2 - up to two lines; ideally one.</h2>
{%- endif -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "_layouts/examples.html" %}
{% from "_macros/tiered-list.jinja" import tiered_list %}
{% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %}

{% block title %}Tiered list / 50/50 on tablet without description{% endblock %}

{% block standalone_css %}patterns_all{% endblock %}

{% block content %}
{%- call(slot) tiered_list(is_list_full_width_on_tablet=false) -%}
{%- call(slot) vf_tiered_list(is_list_full_width_on_tablet=false) -%}
{%- if slot == 'title' -%}
<h2>H2 - up to two lines; ideally one.</h2>
{%- endif -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "_layouts/examples.html" %}
{% from "_macros/tiered-list.jinja" import tiered_list %}
{% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %}

{% block title %}Tiered list / 50/50 with description{% endblock %}

{% block standalone_css %}patterns_all{% endblock %}

{% block content %}
{%- call(slot) tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=false) -%}
{%- call(slot) vf_tiered_list(is_description_full_width_on_desktop=false, is_list_full_width_on_tablet=false) -%}
{%- if slot == 'title' -%}
<h2>H2 - up to two lines; ideally one.</h2>
{%- endif -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "_layouts/examples.html" %}
{% from "_macros/tiered-list.jinja" import tiered_list %}
{% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %}

{% block title %}Tiered list / Full-width with description{% endblock %}

{% block standalone_css %}patterns_all{% endblock %}

{% block content %}
{%- call(slot) tiered_list(is_description_full_width_on_desktop=true, is_list_full_width_on_tablet=true) -%}
{%- call(slot) vf_tiered_list(is_description_full_width_on_desktop=true, is_list_full_width_on_tablet=true) -%}
{%- if slot == 'title' -%}
<h2>H2 - up to two lines; ideally one.</h2>
{%- endif -%}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{% extends "_layouts/examples.html" %}
{% from "_macros/tiered-list.jinja" import tiered_list %}
{% from "_macros/vf_tiered-list.jinja" import vf_tiered_list %}

{% block title %}Tiered list / Full-width without description{% endblock %}

{% block standalone_css %}patterns_all{% endblock %}

{% block content %}
{%- call(slot) tiered_list(is_list_full_width_on_tablet=true) -%}
{%- call(slot) vf_tiered_list(is_list_full_width_on_tablet=true) -%}
{%- if slot == 'title' -%}
<h2>H2 - up to two lines; ideally one.</h2>
{%- endif -%}
Expand Down

0 comments on commit f7093bf

Please sign in to comment.