mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
activate the static page generator only if the option is used
Conflicts: pelican/__init__.py
This commit is contained in:
parent
7127676f71
commit
a91f1cab5d
1 changed files with 4 additions and 2 deletions
|
|
@ -171,8 +171,10 @@ class Pelican(object):
|
|||
signals.finalized.send(self)
|
||||
|
||||
def get_generator_classes(self):
|
||||
generators = [StaticGenerator, ArticlesGenerator, PagesGenerator,
|
||||
StaticPageGenerator]
|
||||
generators = [StaticGenerator, ArticlesGenerator, PagesGenerator]
|
||||
|
||||
if self.settings['STATIC_PAGES']:
|
||||
generators.append(StaticPageGenerator)
|
||||
if self.settings['PDF_GENERATOR']:
|
||||
generators.append(PdfGenerator)
|
||||
if self.settings['LESS_GENERATOR']: # can be True or PATH to lessc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue