Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'

This commit is contained in:
Bjørn Erik Pedersen
2021-06-08 18:47:53 +02:00
21 changed files with 981 additions and 84 deletions

View File

@@ -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.