mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
fix mistake
This commit is contained in:
parent
09567fa99e
commit
f4b2b62874
1 changed files with 2 additions and 2 deletions
|
|
@ -16,8 +16,8 @@ Add LICENSE to your settings file to define default license.
|
|||
|
||||
def add_license(generator, metadatas):
|
||||
if 'license' not in metadatas.keys()\
|
||||
and 'LICENSE' in self.settings.keys():
|
||||
metadatas['license'] = self.settings['LICENSE']
|
||||
and 'LICENSE' in generator.settings.keys():
|
||||
metadatas['license'] = generator.settings['LICENSE']
|
||||
|
||||
|
||||
signal('pelican_article_generate_context').connect(add_license)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue