mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 16:46:09 -04:00
live reload: add section about --navigateToChanged
This commit is contained in:
parent
2710142579
commit
4c81c6c2ac
@ -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..
|
||||
{{% /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
|
||||
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user