Skip to content

Instantly share code, notes, and snippets.

@michaelbiven
Created May 10, 2011 19:54
Show Gist options
  • Save michaelbiven/965244 to your computer and use it in GitHub Desktop.
Save michaelbiven/965244 to your computer and use it in GitHub Desktop.
Archive template for Hyde
{% for node in page.writing_node.walk %}
<ul class="archives">
{% for list_page in node.pages %}
{% ifnotequal list_page node.listing_page %}
{% if list_page.display_in_list %}
<li>
{%with list_page as page %}
<h3 class="archives"><a href="{{list_page.url}}">{{ page.title|safe }}</a></h3>
{%endwith%}
</li>{%endif%}{% endifnotequal %}{% endfor %}
</ul>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment