Remove missing optional files from content.json on cloning
This commit is contained in:
parent
eae6a34bfc
commit
cf7d194dbf
2 changed files with 6 additions and 2 deletions
|
@ -681,13 +681,13 @@ class Site(object):
|
|||
delete_removed_files=False, load_includes=False
|
||||
)
|
||||
if privatekey:
|
||||
new_site.content_manager.sign(file_inner_path.replace("-default", ""), privatekey)
|
||||
new_site.content_manager.sign(file_inner_path.replace("-default", ""), privatekey, remove_missing_optional=True)
|
||||
new_site.content_manager.loadContent(
|
||||
file_inner_path, add_bad_files=False, delete_removed_files=False, load_includes=False
|
||||
)
|
||||
|
||||
if privatekey:
|
||||
new_site.content_manager.sign("content.json", privatekey)
|
||||
new_site.content_manager.sign("content.json", privatekey, remove_missing_optional=True)
|
||||
new_site.content_manager.loadContent(
|
||||
"content.json", add_bad_files=False, delete_removed_files=False, load_includes=False
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue