Skip to content

Instantly share code, notes, and snippets.

@sskylar
Last active August 29, 2015 14:16
Show Gist options
  • Save sskylar/33eba32f124634e92368 to your computer and use it in GitHub Desktop.
Save sskylar/33eba32f124634e92368 to your computer and use it in GitHub Desktop.
Long page in Siteleaf with multiple content sections and sub-sections
<h1>{{title}}</h1>
{{body}}
{% for section in pages %}
<h2 id="{{section.slug}}">{{section.title}}</h2>
{{section.body}}
{% for subsection in section.pages %}
<h3 id="{{subsection.slug}}">{{subsection.title}}</h3>
{{subsection.body}}
{% endfor %}
{% endfor %}
@johnchourajr
Copy link

Is there any way to call a specific section name? Calling sections around markup for a specific section loops that section as many times as a section appears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment