Mercurial > piecrust2
diff tests/servings/test_archives.yaml @ 724:09115f0900f0
bake: Add blog archives generator.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 29 May 2016 20:20:19 -0700 |
parents | |
children | 45ad976712ec |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/servings/test_archives.yaml Sun May 29 20:20:19 2016 -0700 @@ -0,0 +1,16 @@ +--- +url: /archives/2016.html +in: + pages/_year.html: | + Posts in {{year}} + {% for post in pagination.posts -%} + {{post.url}} + {% endfor %} + posts/2015-12-01_post0.html: '' + posts/2016-01-01_post1.html: '' + posts/2016-01-02_post2.html: '' +out: | + Posts in 2016 + /2016/01/02/post2.html + /2016/01/01/post1.html +