mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
2.5.1
This commit is contained in:
parent
3a3ef92fae
commit
7c82f5e037
2 changed files with 3 additions and 3 deletions
|
|
@ -52,8 +52,6 @@ def run_generators(generators, settings, path, theme, output_path, markup):
|
|||
generators = [p(context, settings, path, theme, output_path, markup)
|
||||
for p in generators]
|
||||
|
||||
writer = Writer(output_path)
|
||||
|
||||
for p in generators:
|
||||
if hasattr(p, 'generate_context'):
|
||||
p.generate_context()
|
||||
|
|
@ -62,6 +60,8 @@ def run_generators(generators, settings, path, theme, output_path, markup):
|
|||
if output_path not in os.path.realpath(path):
|
||||
clean_output_dir(output_path)
|
||||
|
||||
writer = Writer(output_path)
|
||||
|
||||
for p in generators:
|
||||
if hasattr(p, 'generate_output'):
|
||||
p.generate_output(writer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue