larva modules: list.ordered

Available Variants

ordered prototype
  1. item_one
  2. item_two
  3. Paragraph Text with sub items woo.
    • sub_item_one
    • sub_item_two
    • Paragraph Text.
      • sub_sub_item_one
      • sub_sub_item_two
      • Paragraph Text.
        • sub_sub_sub_item_one
        • sub_sub_sub_item_two
list README

This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.

list Twig The markup file.
<{{ list_type_name }}l class="list larva // {{ list_classes }}">
	{% for item in list_items %}
		<li class="list__item larva // {{ list_item_classes }}">
			{{ item['list_markup'] }}

			{% if item['list_items'] %}
				{% include "@larva/modules/list/list.twig" with item %}
			{% endif %}
		</li>
	{% endfor %}
</{{ list_type_name }}l>
list.ordered JSON The data object for this pattern.
{
	"list_classes": "a-font-body-m",
	"list_markup": "Paragraph Text.",
	"list_type_name": "o",
	"list_items": [
		{
			"list_markup": "item_one"
		},
		{
			"list_markup": "item_two"
		},
		{
			"list_classes": "a-font-body-m",
			"list_markup": "Paragraph Text with sub items woo.",
			"list_type_name": "u",
			"list_item_classes": "",
			"list_items": [
				{
					"list_markup": "sub_item_one"
				},
				{
					"list_markup": "sub_item_two"
				},
				{
					"list_classes": "a-font-body-m",
					"list_markup": "Paragraph Text.",
					"list_type_name": "u",
					"list_item_classes": "",
					"list_items": [
						{
							"list_markup": "sub_sub_item_one"
						},
						{
							"list_markup": "sub_sub_item_two"
						},
						{
							"list_classes": "a-font-body-m",
							"list_markup": "Paragraph Text.",
							"list_type_name": "u",
							"list_item_classes": "",
							"list_items": [
								{
									"list_markup": "sub_sub_sub_item_one"
								},
								{
									"list_markup": "sub_sub_sub_item_two"
								}
							]
						}
					]
				}
			]
		}
	],
	"list_item_classes": ""
}