Browse Source

Modifying paginator plugin to respect meta data of resources

Signed-off-by: Henning@Mac <Henning@monkey-works.de>
main
Henning@Mac 12 years ago
committed by Lakshmi Vyasarajan
parent
commit
8c519877f6
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      hyde/ext/plugins/paginator.py

+ 4
- 0
hyde/ext/plugins/paginator.py View File

@@ -8,6 +8,7 @@ import os
from hyde.plugin import Plugin from hyde.plugin import Plugin
from hyde.site import Resource from hyde.site import Resource
from hyde.util import pairwalk from hyde.util import pairwalk
from hyde.ext.plugins.meta import Metadata


from fswrap import File from fswrap import File


@@ -47,6 +48,9 @@ class Paginator:
resources associated with it. resources associated with it.
""" """
res = Resource(base_resource.source_file, node) 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, path = self._relative_url(base_resource.relative_path,
page_number, page_number,
base_resource.source_file.name_without_extension, base_resource.source_file.name_without_extension,


Loading…
Cancel
Save