From 8c519877f64489dc13d8290d1475ed509603e97a Mon Sep 17 00:00:00 2001 From: "Henning@Mac" Date: Tue, 12 Feb 2013 17:28:27 +0100 Subject: [PATCH] Modifying paginator plugin to respect meta data of resources Signed-off-by: Henning@Mac --- hyde/ext/plugins/paginator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hyde/ext/plugins/paginator.py b/hyde/ext/plugins/paginator.py index ded8954..4d8b058 100644 --- a/hyde/ext/plugins/paginator.py +++ b/hyde/ext/plugins/paginator.py @@ -8,6 +8,7 @@ import os from hyde.plugin import Plugin from hyde.site import Resource from hyde.util import pairwalk +from hyde.ext.plugins.meta import Metadata from fswrap import File @@ -47,6 +48,9 @@ class Paginator: resources associated with it. """ res = Resource(base_resource.source_file, node) + res.node.meta = Metadata(node.meta) + res.meta = Metadata(base_resource.meta, res.node.meta) + path = self._relative_url(base_resource.relative_path, page_number, base_resource.source_file.name_without_extension,