Created
June 24, 2015 16:37
-
-
Save animikii/4b3374b3f758a1bdfcc3 to your computer and use it in GitHub Desktop.
The Sitemap module displays the visible pages within the site.
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
| <div id="sitemap"> | |
| <!-- Begin Level 1 Tree Nodes --> | |
| <ul class="level1"> | |
| {% for p in page.menu %} | |
| {% unless p.is_hidden? %} | |
| <li><a href="{{ p.url }}">{{ p.name }}</a></li> | |
| {% if p.has_visible_children? %} | |
| <li class="sub"> | |
| <!-- Begin Level 2 Tree Nodes --> | |
| <ul class="level2"> | |
| {% for pp in p.visible_children %} | |
| <li><a href="{{ pp.url }}">{{ pp.name }}</a></li> | |
| {% if pp.has_visible_children? %} | |
| <li class="sub"> | |
| <!-- Begin Level 3 Tree Nodes --> | |
| <ul class="level3"> | |
| {% for ppp in pp.visible_children %} | |
| <li><a href="{{ ppp.url }}">{{ ppp.name }}</a></li> | |
| {% if ppp.has_visible_children? %} | |
| <li class="sub"> | |
| <!-- Begin Level 4 Tree Nodes --> | |
| <ul class="level4"> | |
| {% for pppp in ppp.visible_children %} | |
| <li><a href="{{ pppp.url }}">{{ pppp.name }}</a></li> | |
| {% if pppp.has_visible_children? %} | |
| <li class="sub"> | |
| <!-- Begin Level 5 Tree Nodes --> | |
| <ul class="level5"> | |
| {% for ppppp in pppp.visible_children %} | |
| <li><a href="{{ ppppp.url }}">{{ ppppp.name }}</a></li> | |
| {% if pppp.has_visible_children? %} | |
| <!-- <li class="sub"> | |
| </li> --> | |
| {% endif %} | |
| {% endfor %} | |
| </ul> | |
| </li> | |
| {% endif %} | |
| {% endfor %} | |
| </ul> | |
| </li> | |
| {% endif %} | |
| {% endfor %} | |
| </ul> | |
| </li> | |
| {% endif %} | |
| {% endfor %} | |
| </ul> | |
| </li> | |
| {% endif %} | |
| {% endunless %} | |
| {% endfor %} | |
| </ul> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment