hugo/transform
satotake b017f7cb01 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
2022-08-07 18:34:01 +02:00
..
livereloadinject livereload: Inject script without head or body tag 2022-08-07 18:34:01 +02:00
metainject all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
urlreplacers all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
chain.go Improve SASS errors 2022-05-15 20:25:25 +02:00
chain_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00