Mercurial > piecrust2
comparison tests/bakes/test_pagination.yaml @ 979:45ad976712ec
tests: Big push to get the tests to pass again.
- Lots of fixes everywhere in the code.
- Try to handle debug logging in the multiprocessing worker pool when running in pytest. Not perfect, but usable for now.
- Replace all `.md` test files with `.html` since now a auto-format extension always sets the format.
- Replace `out` with `outfiles` in most places since now blog archives are added to the bake output and I don't want to add expected outputs for blog archives everywhere.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 29 Oct 2017 22:51:57 -0700 |
parents | 879b6b5647a8 |
children |
comparison
equal
deleted
inserted
replaced
978:7e51d14097cb | 979:45ad976712ec |
---|---|
2 config: | 2 config: |
3 site: | 3 site: |
4 posts_per_page: 3 | 4 posts_per_page: 3 |
5 pagination_suffix: /page%num% | 5 pagination_suffix: /page%num% |
6 in: | 6 in: |
7 posts/2015-03-01_post01.md: "---\ntitle: Post 01\n---\n" | 7 posts/2015-03-01_post01.html: "---\ntitle: Post 01\n---\n" |
8 posts/2015-03-02_post02.md: "---\ntitle: Post 02\n---\n" | 8 posts/2015-03-02_post02.html: "---\ntitle: Post 02\n---\n" |
9 posts/2015-03-03_post03.md: "---\ntitle: Post 03\n---\n" | 9 posts/2015-03-03_post03.html: "---\ntitle: Post 03\n---\n" |
10 posts/2015-03-04_post04.md: "---\ntitle: Post 04\n---\n" | 10 posts/2015-03-04_post04.html: "---\ntitle: Post 04\n---\n" |
11 posts/2015-03-05_post05.md: "---\ntitle: Post 05\n---\n" | 11 posts/2015-03-05_post05.html: "---\ntitle: Post 05\n---\n" |
12 posts/2015-03-06_post06.md: "---\ntitle: Post 06\n---\n" | 12 posts/2015-03-06_post06.html: "---\ntitle: Post 06\n---\n" |
13 posts/2015-03-07_post07.md: "---\ntitle: Post 07\n---\n" | 13 posts/2015-03-07_post07.html: "---\ntitle: Post 07\n---\n" |
14 pages/_index.md: '' | 14 pages/_index.html: '' |
15 pages/foo.md: | | 15 pages/foo.html: | |
16 {%- for p in pagination.items -%} | 16 {%- for p in pagination.items -%} |
17 {{p.url}} {{p.title}} | 17 {{p.url}} {{p.title}} |
18 {% endfor -%} | 18 {% endfor -%} |
19 {{pagination.prev_page}} | 19 {{pagination.prev_page}} |
20 {{pagination.this_page}} | 20 {{pagination.this_page}} |
42 --- | 42 --- |
43 config: | 43 config: |
44 site: | 44 site: |
45 posts_per_page: 3 | 45 posts_per_page: 3 |
46 in: | 46 in: |
47 posts/2015-03-01_post01.md: | | 47 posts/2015-03-01_post01.html: | |
48 --- | 48 --- |
49 title: Post 01 | 49 title: Post 01 |
50 tags: [foo] | 50 tags: [foo] |
51 --- | 51 --- |
52 posts/2015-03-02_post02.md: | | 52 posts/2015-03-02_post02.html: | |
53 --- | 53 --- |
54 title: Post 02 | 54 title: Post 02 |
55 tags: [foo] | 55 tags: [foo] |
56 --- | 56 --- |
57 posts/2015-03-03_post03.md: | | 57 posts/2015-03-03_post03.html: | |
58 --- | 58 --- |
59 title: Post 03 | 59 title: Post 03 |
60 tags: [foo] | 60 tags: [foo] |
61 --- | 61 --- |
62 posts/2015-03-04_post04.md: | | 62 posts/2015-03-04_post04.html: | |
63 --- | 63 --- |
64 title: Post 04 | 64 title: Post 04 |
65 tags: [foo] | 65 tags: [foo] |
66 --- | 66 --- |
67 posts/2015-03-05_post05.md: | | 67 posts/2015-03-05_post05.html: | |
68 --- | 68 --- |
69 title: Post 05 | 69 title: Post 05 |
70 tags: [foo] | 70 tags: [foo] |
71 --- | 71 --- |
72 pages/_index.md: '' | 72 pages/_index.html: '' |
73 pages/_tag.md: | | 73 templates/_tag.html: | |
74 Posts with {{tag}} | 74 Posts with {{tag}} |
75 {% for p in pagination.items -%} | 75 {% for p in pagination.items -%} |
76 {{p.url}} {{p.title}} | 76 {{p.url}} {{p.title}} |
77 {% endfor -%} | 77 {% endfor -%} |
78 {{pagination.prev_page}} | 78 {{pagination.prev_page}} |