Mercurial > piecrust2
view tests/servings/test_archives.yaml @ 912:cd236a6af9f6
data: Add access to route metadata in the templating data.
It's available under `route`.
Also, rename `slug` to `rel_url`, because it's confusing when `slug` could
be the route metadata of the same name as provided by the default page source.
The old `slug` is still there for backwards compatibility though.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 28 Apr 2017 10:05:14 -0700 |
parents | 09115f0900f0 |
children | 45ad976712ec |
line wrap: on
line source
--- 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