Mercurial > piecrust2
diff tests/bakes/test_multiblog.yaml @ 733:40aaec6d1d85
tests: Add some tests for blog archives and multi-blog features.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 01 Jun 2016 22:11:51 -0700 |
parents | |
children | 3f01f63b7247 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/bakes/test_multiblog.yaml Wed Jun 01 22:11:51 2016 -0700 @@ -0,0 +1,24 @@ +--- +config: + site: + blogs: [one, two] +in: + posts/one/2016-01-01_post1.html: '' + posts/two/2016-01-02_post2.html: '' + pages/foo-one.html: "Link: {{pcposturl(2016, 01, 01, 'post1', 'one')}}" + pages/foo-two.html: "Link: {{pcposturl(2016, 01, 02, 'post2', 'two')}}" +outfiles: + foo-one.html: "Link: /one/2016/01/01/post1.html" + foo-two.html: "Link: /two/2016/01/02/post2.html" +--- +config: + site: + blogs: [one, two] +in: + posts/one/2016-01-01_post1.html: '' + posts/two/2016-01-02_post2.html: '' + pages/foo-one.html: "---\nblog: one\n---\nLink: {{pcposturl(2016, 01, 01, 'post1')}}" + pages/foo-two.html: "---\nblog: two\n---\nLink: {{pcposturl(2016, 01, 02, 'post2')}}" +outfiles: + foo-one.html: "Link: /one/2016/01/01/post1.html" + foo-two.html: "Link: /two/2016/01/02/post2.html"