From 6f0d072f55f36cf50a6e881779263feac6365ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=87s=E1=B4=9B?= Date: Tue, 2 Apr 2019 08:43:41 +0800 Subject: [PATCH] check empty pagination save_as --- pelican/writers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pelican/writers.py b/pelican/writers.py index bdaabd8d..2d18282a 100644 --- a/pelican/writers.py +++ b/pelican/writers.py @@ -262,8 +262,9 @@ class Writer(object): localcontext = _get_localcontext( context, page.save_as, paginated_kwargs, relative_urls) - _write_file(template, localcontext, self.output_path, - page.save_as, override_output) + if page.save_as: + _write_file(template, localcontext, self.output_path, + page.save_as, override_output) else: # no pagination localcontext = _get_localcontext(