Support open "current content page" in browser
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 26 Jun 2017 19:34:16 +0000 (21:34 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2017 19:34:16 +0000 (21:34 +0200)
commitc825a7312131b4afa67ee90d593640dee3525d98
tree3b60e5dafd771a71b3d4d4b278759d78c34cc7b8
parent7198ea8a1e575644886c4fe027a41b43cfc1ea5b
Support open "current content page" in browser

This commit adds a new `--navigateToChanged` and config setting with the same name, that, when running the Hugo server with live reload enabled, will navigate to the current content file's URL on save.

This is really useful for site-wide content changes (copyedits etc.).
Fixes #3643
commands/hugo.go
commands/server.go
hugolib/hugo_sites.go
hugolib/hugo_sites_build_test.go
livereload/livereload.go