sections
Last updated View as Markdown
Use it to render a section group by its file name, without the .json extension.
liquid
{% sections 'header-group' %}1
With the example above, the sections of sections/header-group.json are rendered in the order of order. Disabled sections are not rendered.
Argument
name: The group file name, without the.jsonextension. Use a quoted string.
When no group file is found with that name, nothing is rendered.
Example
liquid
<body>
{% sections 'header-group' %}
{{ content_for_layout }}
{% sections 'footer-group' %}
</body>1
2
3
4
5
6
7
2
3
4
5
6
7