mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
don't do anything with webassets if the setting is set to false (default)
This commit is contained in:
parent
4ed8c6a09c
commit
7682f657a4
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ def configure_settings(settings, default_settings=None, filename=None):
|
|||
"http://docs.notmyidea.org/alexis/pelican/settings.html#timezone "
|
||||
"for more information")
|
||||
|
||||
if 'WEBASSETS' in settings:
|
||||
if 'WEBASSETS' in settings and settings['WEBASSETS'] is not False:
|
||||
try:
|
||||
from webassets.ext.jinja2 import AssetsExtension
|
||||
settings['JINJA_EXTENSIONS'].append(AssetsExtension)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue