aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/task/pages.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2015-08-26 07:57:04 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2015-08-26 07:57:04 -0300
commit8041475aab2b8efad7d2857027331bd626d26312 (patch)
tree3980e1763c067079a4cebb425d642ca9eac834bf /nikola/plugins/task/pages.py
parentb0b24795b24ee6809397fbbadf42f31f310a219f (diff)
Imported Upstream version 7.6.4
Diffstat (limited to 'nikola/plugins/task/pages.py')
-rw-r--r--nikola/plugins/task/pages.py10
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']