comparison tests/bakes/test_data_provider.yaml @ 716:42efc3634763

tests: Add more tests for merged mappings.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 26 May 2016 20:45:34 -0700
parents 894d286b348f
children 45ad976712ec
comparison
equal deleted inserted replaced
715:a14371c5cda7 716:42efc3634763
12 allpages.html: | 12 allpages.html: |
13 /allpages.html 13 /allpages.html
14 /bar.html 14 /bar.html
15 /foo.html 15 /foo.html
16 / 16 /
17 ---
18 in:
19 posts/2016-06-01_one.md: "One!"
20 posts/2016-06-02_two.md: "Two!"
21 posts/2016-06-03_three.md: "Three!"
22 pages/_index.md: |
23 {% for p in blog.posts -%}
24 {{p.url}}
25 {% endfor %}
26 outfiles:
27 index.html: |
28 /2016/06/03/three.html
29 /2016/06/02/two.html
30 /2016/06/01/one.html
31 ---
32 config:
33 blog:
34 subtitle: "Forcing a Merged Mapping"
35 in:
36 posts/2016-06-01_one.md: "One!"
37 posts/2016-06-02_two.md: "Two!"
38 posts/2016-06-03_three.md: "Three!"
39 pages/_index.md: |
40 {{blog.subtitle}}
41 {% for p in blog.posts -%}
42 {{p.url}}
43 {% endfor %}
44 outfiles:
45 index.html: |
46 Forcing a Merged Mapping
47 /2016/06/03/three.html
48 /2016/06/02/two.html
49 /2016/06/01/one.html
50 ---
51 config:
52 site:
53 blogs: [aaa, xyz]
54 in:
55 posts/aaa/2016-06-01_one.md: "One!"
56 posts/aaa/2016-06-02_two.md: "Two!"
57 posts/xyz/2016-06-01_one-other.md: "One Other!"
58 posts/xyz/2016-06-02_two-other.md: "Two Other!"
59 pages/_index.md: |
60 {% for p in aaa.posts -%}
61 {{p.url}}
62 {% endfor %}
63 {% for p in xyz.posts -%}
64 {{p.url}}
65 {% endfor %}
66 outfiles:
67 index.html: |
68 /aaa/2016/06/02/two.html
69 /aaa/2016/06/01/one.html
70
71 /xyz/2016/06/02/two-other.html
72 /xyz/2016/06/01/one-other.html
73