comparison tests/bakes/test_ordered_source.yaml @ 1100:1ce67d2fae0a

routing: Fix URL generation bug with ugly URLs and index pages in sub-folders.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 17 Feb 2018 11:54:00 -0800
parents
children
comparison
equal deleted inserted replaced
1099:07c23be08029 1100:1ce67d2fae0a
1 ---
2 in:
3 manual/00__index.html: "my index"
4 manual/01_zzz.html: "zzz"
5 manual/02_aaa.html: "aaa"
6 manual/02_aaa/01_aaa_zzz: "aaa with zzz"
7 manual/02_aaa/02_aaa_bbb: "aaa with bbb"
8 manual/03_yyy.html: "yyy"
9 config:
10 site:
11 pretty_urls: true
12 sources:
13 manual:
14 type: ordered
15 default_layout: none
16 routes:
17 - url: '/man/%slug%'
18 source: manual
19 outfiles:
20 man/index.html: "my index"
21 man/aaa/index.html: "aaa"
22 man/zzz/index.html: "zzz"
23 man/yyy/index.html: "yyy"
24 man/aaa/aaa_zzz/index.html: "aaa with zzz"
25 man/aaa/aaa_bbb/index.html: "aaa with bbb"
26 ---
27 in:
28 manual/00__index.html: "my index"
29 manual/01_zzz.html: "zzz"
30 manual/02_aaa.html: "aaa"
31 manual/02_aaa/01_aaa_zzz: "aaa with zzz"
32 manual/02_aaa/02_aaa_bbb: "aaa with bbb"
33 manual/03_yyy.html: "yyy"
34 config:
35 site:
36 sources:
37 manual:
38 type: ordered
39 default_layout: none
40 routes:
41 - url: '/man/%slug%'
42 source: manual
43 outfiles:
44 man.html: "my index"
45 man/aaa.html: "aaa"
46 man/zzz.html: "zzz"
47 man/yyy.html: "yyy"
48 man/aaa/aaa_zzz.html: "aaa with zzz"
49 man/aaa/aaa_bbb.html: "aaa with bbb"
50