Last active
August 29, 2015 14:16
-
-
Save sskylar/33eba32f124634e92368 to your computer and use it in GitHub Desktop.
Long page in Siteleaf with multiple content sections and sub-sections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.