-
-
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.
This file contains 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
{% 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