mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
live reload: add section about --navigateToChanged
This commit is contained in:
1 parent
2710142579
commit
4c81c6c2ac
1 file changed
+5
@@ -167,6 +167,11 @@ Most Hugo builds are so fast that you may not notice the change unless looking d
|
|||||||
Hugo injects the LiveReload `<script>` before the closing `</body>` in your templates and will therefore not work if this tag is not present..
|
Hugo injects the LiveReload `<script>` before the closing `</body>` in your templates and will therefore not work if this tag is not present..
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
### Redirect automatically to the page you just saved
|
||||||
|
|
||||||
|
When you are working with more than one document and want to see the markup as real-time as possible it's not ideal to keep jumping between them.
|
||||||
|
Fortunately Hugo has an easy, embedded and simple solution for this. It's the flag `--navigateToChanged`.
|
||||||
|
|
||||||
### Disable LiveReload
|
### Disable LiveReload
|
||||||
|
|
||||||
LiveReload works by injecting JavaScript into the pages Hugo generates. The script creates a connection from the browser's web socket client to the Hugo web socket server.
|
LiveReload works by injecting JavaScript into the pages Hugo generates. The script creates a connection from the browser's web socket client to the Hugo web socket server.
|
||||||
|
|||||||
Reference in new issue
Block a user