aboutsummaryrefslogtreecommitdiffhomepage
path: root/snap
diff options
context:
space:
mode:
authorsatotake <[email protected]>2022-08-07 23:15:28 +0900
committerBjørn Erik Pedersen <[email protected]>2022-08-07 18:34:01 +0200
commitb017f7cb0136ee33f5d19749a15bf3365a991ac5 (patch)
tree622c40237802ce9426f0b0d49d4477d8fd111422 /snap
parent7fb28085aca42ff1771c5a9d0717530c9515fa5c (diff)
downloadhugo-b017f7cb0136ee33f5d19749a15bf3365a991ac5.tar.gz
hugo-b017f7cb0136ee33f5d19749a15bf3365a991ac5.zip
livereload: Inject script without head or body tag
Currently, Hugo does not inject `livereload` script if html does not contain `<head>` or `<body>`. This sometimes happens if you create new sites without `theme` and it is hard to catch the cause soon. This PR: * Inject livereload script even if html does not include `<head>`, `<body>`, or `<html>` - Modern browsers execute scripts even if they are outside `<html>` - Some js frameworks (confirmed with vite) inject HRM script without `<html>` tag * Append warning script to html if `<head>` or `<body>` is not in html * Fix bug that livereload cannot be appended to the tags with attrs Close #10105
Diffstat (limited to 'snap')
0 files changed, 0 insertions, 0 deletions