Index: tests/test_site/pages/sitemap.tmpl |
=================================================================== |
--- a/tests/test_site/pages/sitemap.tmpl |
+++ b/tests/test_site/pages/sitemap.tmpl |
@@ -4,21 +4,21 @@ |
tags = [popular, bar] |
<h1> Unfiltered </h1> |
<ul> |
-{%- for unfiltered_page in get_pages_metadata()|sort %} |
+{%- for unfiltered_page in get_pages_metadata()|sort(attribute='page') %} |
rosie
2018/03/26 02:32:21
Added the page attribute for sorting functionality
Sebastian Noack
2018/03/26 02:57:48
Acknowledged.
|
<li>title : {{ unfiltered_page['page']}} </li> |
{%- endfor %} |
</ul> |
<h1> Filtered </h1> |
<ul> |
- {%- for filtered_page in get_pages_metadata({'tags': ['popular', 'bar']})|sort -%} |
+ {%- for filtered_page in get_pages_metadata({'tags': ['popular', 'bar']})|sort(attribute='page') -%} |
<li>title : {{ filtered_page['page'] }} </li> |
{%- endfor %} |
</ul> |
<h1> String Filter For Listy Option </h1> |
<ul> |
- {%- for filtered_page in get_pages_metadata({'tags': 'popular'})|sort -%} |
+ {%- for filtered_page in get_pages_metadata({'tags': 'popular'})|sort(attribute='page') -%} |
<li>title : {{ filtered_page['page'] }} </li> |
{%- endfor %} |
</ul> |