diff --git a/mmdc_index.py b/mmdc_index.py index 743037c..a8e8b3a 100755 --- a/mmdc_index.py +++ b/mmdc_index.py @@ -38,5 +38,5 @@ def edit_index(filepath, json_allworks_dict): insert_work(div_section02, 'Graduation_work thumbnail', graduation_work, key ) return tree -index_tree = edit_index('web/index.html', json_allworks) -write_html_file(index_tree, 'web/index_edited.html') +index_tree = edit_index('web/index-template.html', json_allworks) +write_html_file(index_tree, 'web/index.html') diff --git a/mmdc_pages.py b/mmdc_pages.py index 752331e..412e57b 100755 --- a/mmdc_pages.py +++ b/mmdc_pages.py @@ -120,7 +120,7 @@ def edit_index(filepath, json_allworks_dict): return tree -worktemplate = open('web/work.html', 'r') +worktemplate = open('web/work-template.html', 'r') for key in json_allworks.keys(): graduation_work=json_allworks[key] graduation_work_title = (json_allworks[key]['Title']).encode('ascii', 'ignore') diff --git a/web/index.html b/web/index-template.html similarity index 100% rename from web/index.html rename to web/index-template.html diff --git a/web/work.html b/web/work-template.html similarity index 100% rename from web/work.html rename to web/work-template.html