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 commands: Use paths from PathSpec for walker 2017-05-09 14:07:43 +02:00
check.go Remove ShowPlan 2016-11-23 16:35:49 +01:00
commandeer.go Only re-render the view(s) you're working on 2017-10-14 13:40:43 +02:00
convert.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
env.go
gen.go
genautocomplete.go commands: Make first letter of flags' usage lowercase 2017-04-26 22:23:20 +02:00
genchromastyles.go Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
gendoc.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
gendocshelper.go Revert "commands: Adjust docs path" 2017-07-06 10:34:04 +02:00
genman.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
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 hugo import jekyll support nested _posts directories 2017-07-01 10:15:22 +02:00
import_jekyll_test.go commands: Import Octopress image tag in Jekyll importer 2017-04-22 22:35:52 +02:00
limit_darwin.go commands: Adjust rlimit to 64000 2017-06-12 20:43:19 +02:00
limit_others.go Revert "commands: Remove the rlimit tweaking on macOS" 2017-06-12 20:35:19 +02:00
list.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
list_config.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
new.go releaser: Bump versions for release of 0.29 2017-09-26 19:23:15 +00:00
new_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
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 all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
undraft.go commands: Support human-readable YAML boolean values in undraft 2017-07-03 23:26:01 +02:00
undraft_test.go commands: Support human-readable YAML boolean values in undraft 2017-07-03 23:26:01 +02:00
version.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00