Skip to content

Instantly share code, notes, and snippets.

@navilan
Created March 2, 2009 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save navilan/72829 to your computer and use it in GitHub Desktop.
Save navilan/72829 to your computer and use it in GitHub Desktop.
Sample code for listing a set of pages that belong to a node.
{% for node in page.node.walk %}
<ul>
{% for list_page in node.pages %}
{% if list_page.display_in_list %}
<li>
<h1><a href="{{list_page.url}}">{{list_page.title}}</a></h1>
{% if page.excerpt %}
<div class="page-excerpt">
{% render_excerpt list_page %}
</div>
<div class="page-excerpt-footer">
<a href="{{list_page.url}}">Read More ...</a>
</div>
{%endif%}
</li>{%endif%}{% endfor %}
</ul>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment