comparison tests/bakes/test_relative_pagination.bake @ 393:89c1e2a91468

pagination: Fix regression bug with previous/next posts. Added unit test.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 17 May 2015 15:26:46 -0700
parents
children
comparison
equal deleted inserted replaced
392:923a9b96411d 393:89c1e2a91468
1 ---
2 config:
3 site:
4 default_post_layout: post
5 in:
6 posts/2015-03-01_post01.md: "---\ntitle: Post 01\n---\nContent 01"
7 posts/2015-03-02_post02.md: "---\ntitle: Post 02\n---\nContent 02"
8 posts/2015-03-03_post03.md: "---\ntitle: Post 03\n---\nContent 03"
9 templates/post.html: |
10 BLAH {{content|safe}}
11 {{pagination.prev_item.url}} {{pagination.prev_item.title}}
12 {{pagination.next_item.url}} {{pagination.next_item.title}}
13 outfiles:
14 2015/03/02/post02.html: |
15 BLAH Content 02
16 /2015/03/01/post01.html Post 01
17 /2015/03/03/post03.html Post 03
18