hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit c21b1558aebfe36ce03bf105da5a131b231627c0
parent dcee05b2ae40eb2fabcb97e2a535eeba544c0a7e
Author: David King <david@oodavid.com>
Date:   Wed, 25 May 2016 20:20:22 +0100

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

Diffstat:
Mdocs/content/extras/livereload.md | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/docs/content/extras/livereload.md b/docs/content/extras/livereload.md
@@ -45,9 +45,6 @@ This means that keeping the site open on a second monitor (or another
 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 @@ LiveReload functionality.
 
     $ 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.