From c21b1558aebfe36ce03bf105da5a131b231627c0 Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 25 May 2016 20:20:22 +0100 Subject: [PATCH] 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 --- docs/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 index f1bc5543b..602b9124c 100644 --- 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 `` tag for LiveReload to work. +Hugo injects the LiveReload `