diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-01 23:04:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-01 23:04:12 +0100 |
commit | e8380e612fae18493556d620726a9069a17128db (patch) | |
tree | e7aa175227a5748a65b667734bb080a75a43d69e /docs/config.toml | |
parent | 186db7cd7ad56051d5a064ee5120e6ec73f575a0 (diff) |
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
Diffstat (limited to 'docs/config.toml')
-rw-r--r-- | docs/config.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/config.toml b/docs/config.toml index b5d159334..17161dd5e 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -2,6 +2,7 @@ title = "Hugo: A Fast and Flexible Website Generator" baseurl = "http://gohugo.io/" MetaDataFormat = "yaml" pluralizeListTitles = false +enableGitInfo = true [blackfriday] plainIDAnchors = true |