hugo/commands
Bjørn Erik Pedersen 60bd332c1f Only re-render the view(s) you're working on
Hugo already, in its server mode,  support partial rebuilds. To put it simply: If you change `about.md`, only that content page is read and processed, then Hugo does some processing (taxonomies etc.) and the full site is rendered.
This commit covers the rendering part: We now only re-render the pages you work on, i.e. the last n pages you watched in the browser (which obviously also includes the  page in the example above).

To be more specific: When you are running the hugo server in watch (aka. livereload) mode, and change a template or a content file, then we do a partial re-rendering of the following:

* The current content page (if it is a content change)
* The home page
* Up to the last 10 pages you visited on the site.

This should in most cases be enough, but if you navigate to something completely different, you may see stale content. Doing an edit will then refresh that page.

Note that this feature is enabled by default. To turn it off, run `hugo server --disableFastRender`.

Fixes #3962
See  #1643
2017-10-14 13:40:43 +02:00
..
benchmark.go
check.go
commandeer.go Only re-render the view(s) you're working on 2017-10-14 13:40:43 +02:00
convert.go
env.go
gen.go
genautocomplete.go
genchromastyles.go Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
gendoc.go
gendocshelper.go
genman.go
hugo.go Only re-render the view(s) you're working on 2017-10-14 13:40:43 +02:00
hugo_windows.go
import_jekyll.go
import_jekyll_test.go
limit_darwin.go
limit_others.go
list.go
list_config.go
new.go releaser: Bump versions for release of 0.29 2017-09-26 19:23:15 +00:00
new_test.go
release.go Set up Hugo release flow on CircleCI 2017-09-10 17:14:02 +02:00
server.go Only re-render the view(s) you're working on 2017-10-14 13:40:43 +02:00
server_test.go
undraft.go
undraft_test.go
version.go