diff --git a/plugins/pelican-jinja2content.py b/plugins/pelican-jinja2content.py index 2aad33e..0600a43 100644 --- a/plugins/pelican-jinja2content.py +++ b/plugins/pelican-jinja2content.py @@ -30,6 +30,7 @@ def execjinja2(instance): kwargs['article'] = instance elif type(instance) is contents.Page: kwargs['page'] = instance + kwargs['instance'] = instance # avoid using outside common elements instance._content = jinja2_template.render(**kwargs)