From f89f351b3cbc6e16348172a324cd75bce3dcbd6f Mon Sep 17 00:00:00 2001 From: shortcutme Date: Wed, 14 Dec 2016 00:43:08 +0100 Subject: [PATCH] Dont copy content.json-default file --- src/Site/Site.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Site/Site.py b/src/Site/Site.py index b302717f..36023527 100644 --- a/src/Site/Site.py +++ b/src/Site/Site.py @@ -577,6 +577,9 @@ class Site(object): dest_dir = os.path.dirname(file_path_dest) if not os.path.isdir(dest_dir): os.makedirs(dest_dir) + if file_inner_path_dest == "content.json-default": # Don't copy root content.json-default + continue + shutil.copy(file_path, file_path_dest) # If -default in path, create a -default less copy of the file