From 62501d00b1cc6d8cbc2e5a02b8f8d370b624b69a Mon Sep 17 00:00:00 2001 From: shortcutme Date: Wed, 14 Dec 2016 00:42:31 +0100 Subject: [PATCH] Use content.json-default if exists --- src/Site/Site.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Site/Site.py b/src/Site/Site.py index ff9e446d..cb8e464a 100644 --- a/src/Site/Site.py +++ b/src/Site/Site.py @@ -535,7 +535,10 @@ class Site(object): # Copy root content.json if not new_site.storage.isFile("content.json") and not overwrite: # Content.json not exist yet, create a new one from source site - content_json = self.storage.loadJson("content.json") + if self.storage.isFile(root_inner_path + "/content.json-default"): + content_json = self.storage.loadJson(root_inner_path + "/content.json-default") + else: + content_json = self.storage.loadJson("content.json") if "domain" in content_json: del content_json["domain"] content_json["title"] = "my" + content_json["title"]