Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 template = empty | |
2 product = foo | |
3 title = test_metadata | |
4 tags = [popular, bar] | |
5 <h1> Unfiltered </h1> | |
6 <ul> | |
7 {%- for unfiltered_page in get_pages_metadata() -%} | |
8 <li>title : {{ unfiltered_page['page']}} </li> | |
9 {%- endfor %} | |
10 </ul> | |
11 | |
12 <h1> Filtered </h1> | |
13 <ul> | |
14 {%- for filtered_page in get_pages_metadata({'tags': ['popular', 'bar']}) -% } | |
15 <li>title : {{ filtered_page['page'] }} </li> | |
16 {%- endfor %} | |
17 </ul> | |
18 | |
19 <h1> String Filter For Listy Option </h1> | |
20 <ul> | |
21 {%- for filtered_page in get_pages_metadata({'tags': 'popular'}) -%} | |
22 <li>title : {{ filtered_page['page'] }} </li> | |
23 {%- endfor %} | |
24 </ul> | |
OLD | NEW |