forked from github/pelican
settings: Make DEFAULT_CONFIG public
This dictionary is accessed by plugins (like `summary`) which add new settings, so it should be public (i.e. no prefixed underscore). The changed name length would have led to a re-indenting of the default contents anyway, so I shifted them all to four spaces.
This commit is contained in:
parent
c6de4430a0
commit
e9dc1dd478
6 changed files with 105 additions and 108 deletions
|
|
@ -18,7 +18,7 @@ from tempfile import mkdtemp
|
|||
from shutil import rmtree
|
||||
|
||||
from pelican.contents import Article
|
||||
from pelican.settings import _DEFAULT_CONFIG
|
||||
from pelican.settings import DEFAULT_CONFIG
|
||||
|
||||
|
||||
@contextmanager
|
||||
|
|
@ -162,7 +162,7 @@ def locale_available(locale_):
|
|||
|
||||
|
||||
def get_settings():
|
||||
settings = _DEFAULT_CONFIG.copy()
|
||||
settings = DEFAULT_CONFIG.copy()
|
||||
settings['DIRECT_TEMPLATES'] = ['archives']
|
||||
settings['filenames'] = {}
|
||||
return settings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue