Hugo injects the LiveReload `<script>` before the closing `</body>` in your templates and will therefore not work if this tag is not present.
It appears just after the <head> tag locally.
Hugo injects the LiveReload `<script>` before the closing `</body>` in your templates and will therefore not work if this tag is not present.
It appears just after the <head> tag locally.
if Hugo found plain <head> without any attributes, it will inject after <head>.
if the head has attributes i.e. <head data-random="anything">, Hugo will inject before </body>
Source:
Okay. Documentation is outdated then.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.