comparison tests/bakes/test_assets.yaml @ 473:eb3ace870708 2.0.0a13

bake: Fix a bug with copying assets when `pretty_urls` are disabled. Added unit tests.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 14 Jul 2015 23:59:08 -0700
parents
children 45ad976712ec
comparison
equal deleted inserted replaced
472:dc78ade3f320 473:eb3ace870708
1 ---
2 in:
3 posts/2010-01-01_post1-assets/blah.png: 'fake image'
4 posts/2010-01-01_post1.md: 'my image: {{assets.blah}}'
5 pages/_index.md: 'something'
6 out:
7 '2010':
8 '01':
9 '01':
10 post1.html: 'my image: /2010/01/01/post1/blah.png'
11 post1:
12 blah.png: 'fake image'
13 index.html: 'something'
14 ---
15 config:
16 site:
17 pretty_urls: true
18 in:
19 posts/2010-01-01_post1-assets/blah.png: 'fake image'
20 posts/2010-01-01_post1.md: 'my image: {{assets.blah}}'
21 pages/_index.md: 'something'
22 out:
23 '2010':
24 '01':
25 '01':
26 'post1':
27 index.html: 'my image: /2010/01/01/post1/blah.png'
28 blah.png: 'fake image'
29 index.html: 'something'
30