Always apply extended information to content.json if keys missing
This commit is contained in:
parent
7291ac8c6b
commit
f719b89a7a
1 changed files with 6 additions and 2 deletions
|
@ -444,8 +444,12 @@ class ContentManager(object):
|
||||||
content["description"] = ""
|
content["description"] = ""
|
||||||
content["signs_required"] = 1
|
content["signs_required"] = 1
|
||||||
content["ignore"] = ""
|
content["ignore"] = ""
|
||||||
|
|
||||||
if extend:
|
if extend:
|
||||||
content.update(extend) # Add custom fields
|
# Add extend keys if not exists
|
||||||
|
for key, val in extend.items():
|
||||||
|
if key not in content:
|
||||||
|
content[key] = val
|
||||||
|
|
||||||
directory = helper.getDirname(self.site.storage.getPath(inner_path))
|
directory = helper.getDirname(self.site.storage.getPath(inner_path))
|
||||||
inner_directory = helper.getDirname(inner_path)
|
inner_directory = helper.getDirname(inner_path)
|
||||||
|
|
Loading…
Reference in a new issue