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
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
genautocomplete.go
gendoc.go
genman.go
hugo.go Add GitInfo 2016-11-01 23:04:12 +01:00
hugo_windows.go
import_jekyll.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
import_jekyll_test.go
limit_darwin.go
limit_others.go
list.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
list_config.go
new.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
new_test.go
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
version.go Add hugo env command 2016-10-05 10:20:25 +02:00