diff options
| author | 2015-08-26 07:57:23 -0300 | |
|---|---|---|
| committer | 2015-08-26 07:57:23 -0300 | |
| commit | 70ceb871117ca811d63cb02671dc0fefc2700883 (patch) | |
| tree | 846133ea39797d2cd1101cff2ac0818167353490 /nikola/plugins/task/pages.py | |
| parent | 8559119e2f45b7f6508282962c0430423bfab051 (diff) | |
| parent | 787b97a4cb24330b36f11297c6d3a7a473a907d0 (diff) | |
Merge tag 'upstream/7.6.4'
Upstream version 7.6.4
Diffstat (limited to 'nikola/plugins/task/pages.py')
| -rw-r--r-- | nikola/plugins/task/pages.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nikola/plugins/task/pages.py b/nikola/plugins/task/pages.py index d0edb56..e6a8a82 100644 --- a/nikola/plugins/task/pages.py +++ b/nikola/plugins/task/pages.py @@ -24,12 +24,15 @@ # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +"""Render pages into output.""" + from __future__ import unicode_literals from nikola.plugin_categories import Task from nikola.utils import config_changed class RenderPages(Task): + """Render pages into output.""" name = "render_pages" @@ -49,8 +52,11 @@ class RenderPages(Task): for post in self.site.timeline: if not kw["show_untranslated_posts"] and not post.is_translation_available(lang): continue - for task in self.site.generic_page_renderer(lang, post, - kw["filters"]): + if post.is_post: + context = {'pagekind': ['post_page']} + else: + context = {'pagekind': ['story_page']} + for task in self.site.generic_page_renderer(lang, post, kw["filters"], context): task['uptodate'] = task['uptodate'] + [config_changed(kw, 'nikola.plugins.task.pages')] task['basename'] = self.name task['task_dep'] = ['render_posts'] |
