hugo/commands
Bjørn Erik Pedersen e8380e612f Add GitInfo
This commit adds a `GitInfo` object to `Page` if `EnableGitInfo` is set.

It then also sets `Lastmod` for the given `Page` to the author date provided by Git.

The Git integrations should be fairly performant, but it adds "some time" to the build, somewhat depending on the Git history size.

If you want, you can run without during development and turn it on when deploying to the live server: `hugo --enableGitInfo`.

Fixes #2102
2016-11-01 23:04:12 +01:00
..
benchmark.go Make it possible to add a language in server mode 2016-09-06 18:32:17 +03:00
check.go Make the check command work in multilingual mode 2016-09-06 18:32:18 +03:00
convert.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
env.go Add hugo env command 2016-10-05 10:20:25 +02:00
gen.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
genautocomplete.go Fix example for autocomplete 2016-06-22 13:59:53 +02:00
gendoc.go Add readFile template func 2016-03-31 21:24:18 +02:00
genman.go Add readFile template func 2016-03-31 21:24:18 +02:00
hugo.go Add GitInfo 2016-11-01 23:04:12 +01:00
hugo_windows.go Move cobra.MousetrapHelpText to hugo_windows.go 2015-12-16 21:26:47 -07:00
import_jekyll.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
import_jekyll_test.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
limit_darwin.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
limit_others.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
list.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
list_config.go Make config flag global 2016-07-07 18:06:48 +02:00
new.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
new_test.go Add readFile template func 2016-03-31 21:24:18 +02:00
server.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
server_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
undraft.go commands: Delete useless conversion 2016-09-11 12:23:09 +02:00
undraft_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
version.go Add hugo env command 2016-10-05 10:20:25 +02:00