From 1692ea745145ab4bae97aea453f61183b85f35dc Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 13 Jan 2017 09:07:12 +0000 Subject: [PATCH] Make instance globally accessible --- plugins/pelican-jinja2content.py | 1 + 1 file changed, 1 insertion(+) 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)