ref: c21b1558aebfe36ce03bf105da5a131b231627c0
parent: dcee05b2ae40eb2fabcb97e2a535eeba544c0a7e
author: David King <[email protected]>
date: Wed May 25 16:20:22 EDT 2016
docs: Add note about live reload script injection Answers common question in docs. https://discuss.gohugo.io/t/livereload-only-works-on-the-homepage/1006/4
--- a/docs/content/extras/livereload.md
+++ b/docs/content/extras/livereload.md
@@ -45,9 +45,6 @@
half of your current monitor) allows you to see exactly what your
content looks like without even leaving your text editor.
-It's worth noting that "--watch" is enabled by default when "hugo server"
-is run.
-
## Disabling LiveReload
LiveReload works by injecting JavaScript into the pages it
@@ -60,3 +57,9 @@
$ hugo server --watch --disableLiveReload
+## Notes
+
+The `--watch` flag is enabled by default when `hugo server` is run.
+
+You must have a closing `</body>` tag for LiveReload to work.
+Hugo injects the LiveReload `<script>` before this tag.