Skip to content

Commit 7e6a39e

Browse files
committed
Bug fix
1 parent e68f88c commit 7e6a39e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ def read_text(path):
77

88
def inline_assets(html, css, js):
99
compilation_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
10-
html = html.replace(f'<span id="tool-version"></span>', '<span id="tool-version">compiled on {compilation_time}<strong></strong></span>')
11-
html = html.replace('<link rel="stylesheet" href="style.css">', '')
12-
html = html.replace('</head>', f'<style>\n{css}\n</style>\n</head>')
13-
html = html.replace('<script src="app.js"></script>', '')
14-
html = html.replace('</body>', f'<script>\n{js}\n</script>\n</body>')
10+
html = html.replace(f'<span id="tool-version"></span>', f'<span id="tool-version">compiled on {compilation_time}<strong></strong></span>')
11+
html = html.replace(f'<link rel="stylesheet" href="style.css">', f'')
12+
html = html.replace(f'</head>', f'<style>\n{css}\n</style>\n</head>')
13+
html = html.replace(f'<script src="app.js"></script>', f'')
14+
html = html.replace(f'</body>', f'<script>\n{js}\n</script>\n</body>')
1515
return html
1616

1717

0 commit comments

Comments
 (0)