mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-19 14:59:28 +00:00
update template notices
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{# Note: This is generated with scripts/inline_resources.py. Please do not edit this file manually. #}
|
{# Note: This file is generated with scripts/inline_resources.py. Please do not edit manually. #}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
|
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
|
||||||
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
|
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<%# Note: This is generated with scripts/inline_resources.py. Please do not edit this file manually. %>
|
<%# Note: This file is generated with scripts/inline_resources.py. Please do not edit manually. %>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
|
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
|
||||||
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
|
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ def inline_css_resource(original_file: str, css_file: str, output_file: str):
|
|||||||
original_data = read_file(original_file)
|
original_data = read_file(original_file)
|
||||||
original_data = original_data.replace('<!-- @INLINE_CSS_HERE@ -->',
|
original_data = original_data.replace('<!-- @INLINE_CSS_HERE@ -->',
|
||||||
f'<style>{css_data}</style>')
|
f'<style>{css_data}</style>')
|
||||||
note = 'Note: This is generated with scripts/inline_resources.py. Please do not edit this file manually.'
|
note = 'Note: This file is generated with scripts/inline_resources.py. Please do not edit manually.'
|
||||||
if original_file.endswith('.ejs'):
|
if original_file.endswith('.ejs'):
|
||||||
original_data = f'<%# {note} %>\n' + original_data
|
original_data = f'<%# {note} %>\n' + original_data
|
||||||
else:
|
else:
|
||||||
@@ -69,5 +69,5 @@ if __name__ == '__main__':
|
|||||||
inline_css_resource(
|
inline_css_resource(
|
||||||
os.path.join(resources_folder, 'templates/error.ejs'),
|
os.path.join(resources_folder, 'templates/error.ejs'),
|
||||||
os.path.join(resources_folder, 'styles/main.css'),
|
os.path.join(resources_folder, 'styles/main.css'),
|
||||||
os.path.join(root, 'editor/frontend/src/template.ejs'),
|
os.path.join(root, 'editor/web/src/template.ejs'),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user