changeset 222:1446dbc42d39

data: Only expose the `family` linker.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 03 Feb 2015 18:48:13 -0800
parents f82262f59600
children 7decf00eee47
files piecrust/data/builder.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/data/builder.py	Tue Feb 03 08:21:43 2015 -0800
+++ b/piecrust/data/builder.py	Tue Feb 03 18:48:13 2015 -0800
@@ -34,16 +34,14 @@
     pc_data = PieCrustData()
     pgn_source = ctx.pagination_source or get_default_pagination_source(page)
     paginator = Paginator(page, pgn_source, first_uri, ctx.page_num,
-            ctx.pagination_filter)
+                          ctx.pagination_filter)
     assetor = Assetor(page, first_uri)
-    flat_linker = Linker(page.source, page_path=page.rel_path)
     recursive_linker = RecursiveLinker(page.source, page_path=page.rel_path)
     data = {
             'piecrust': pc_data,
             'page': dict(page.config.get()),
             'assets': assetor,
             'pagination': paginator,
-            'siblings': flat_linker,
             'family': recursive_linker
             }
     page_data = data['page']