Index: tests/test_site/pages/sitemap.tmpl |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/tests/test_site/pages/sitemap.tmpl |
@@ -0,0 +1,17 @@ |
+template = empty |
+product = foo |
+title = test_metadata |
+tags = popular, bar |
+<h1> Unfiltered </h1> |
+<ul> |
+ {%- for unfiltered_page in get_pages_metadata() -%} |
+<li>{{ unfiltered_page }} </li> |
+{%- endfor %} |
+</ul> |
+ |
+<h1> Filtered </h1> |
+<ul> |
+{%- for page in get_pages_metadata({'tags': 'popular, bar'}) -%} |
+<li> {{ page }} </li> |
+{%- endfor %} |
+</ul> |