Skip to content

Commit

Permalink
live reload: add section about --navigateToChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasew authored and bep committed Jun 7, 2021
1 parent 2710142 commit 4c81c6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/en/getting-started/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4c81c6c

Please sign in to comment.