Skip to content

Instantly share code, notes, and snippets.

@mikedory
Forked from navilan/hyde_page_listing.html
Created March 24, 2012 21:09
Show Gist options
  • Save mikedory/2187952 to your computer and use it in GitHub Desktop.
Save mikedory/2187952 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