aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/task_render_sources.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2013-02-13 18:35:40 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2013-02-13 18:35:40 -0300
commit75a865d635c5aa3eacea6f5baf12d752464db57c (patch)
tree0f2850fe296fc82226dd62e5646fecb3ee76b148 /nikola/plugins/task_render_sources.py
parentf55a1d8df9d9e9154a8bbc886b9340f3d4201547 (diff)
parenta40930043121a4b60de8526d58417761a54ab718 (diff)
Merge tag 'upstream/5.2'
Upstream version 5.2
Diffstat (limited to 'nikola/plugins/task_render_sources.py')
-rw-r--r--nikola/plugins/task_render_sources.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/nikola/plugins/task_render_sources.py b/nikola/plugins/task_render_sources.py
index 3a05b96..bce8d69 100644
--- a/nikola/plugins/task_render_sources.py
+++ b/nikola/plugins/task_render_sources.py
@@ -8,11 +8,11 @@
# distribute, sublicense, and/or sell copies of the
# Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
-#
+#
# The above copyright notice and this permission notice
# shall be included in all copies or substantial portions of
# the Software.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
@@ -53,9 +53,13 @@ class Sources(Task):
flag = False
for lang in kw["translations"]:
for post in self.site.timeline:
- output_name = os.path.join(kw['output_folder'],
- post.destination_path(lang, post.source_ext()))
+ output_name = os.path.join(
+ kw['output_folder'], post.destination_path(
+ lang, post.source_ext()))
source = post.source_path
+ if source.endswith('.html'):
+ print("Avoiting to render source of .html page")
+ continue
if lang != kw["default_lang"]:
source_lang = source + '.' + lang
if os.path.exists(source_lang):
@@ -68,7 +72,7 @@ class Sources(Task):
'actions': [(utils.copy_file, (source, output_name))],
'clean': True,
'uptodate': [utils.config_changed(kw)],
- }
+ }
if flag is False: # No page rendered, yield a dummy task
yield {
'basename': 'render_sources',