Index: tests/test_site/pages/sitemap.tmpl |
=================================================================== |
--- a/tests/test_site/pages/sitemap.tmpl |
+++ b/tests/test_site/pages/sitemap.tmpl |
@@ -3,21 +3,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') %} |
Sebastian Noack
2018/04/18 21:12:27
Nit: The changes here seem unrelated now. Still it
rosie
2018/04/18 22:46:18
Is there any advantage to committing it separately
Sebastian Noack
2018/04/19 00:22:25
If this change is unrelated, i.e. can be separated
rosie
2018/04/19 03:31:01
Sounds good. Done.
|
<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> |