hugo/hugolib
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
..
alias_test.go
author.go
benchmark_test.go
config.go Add GitInfo 2016-11-01 23:04:12 +01:00
config_test.go
datafiles_test.go
embedded_shortcodes_test.go
gitinfo.go Add GitInfo 2016-11-01 23:04:12 +01:00
handler_base.go
handler_file.go
handler_meta.go
handler_page.go
handler_test.go
hugo_info.go
hugo_sites.go Add GitInfo 2016-11-01 23:04:12 +01:00
hugo_sites_test.go
i18n.go
media.go
menu.go
menu_test.go
multilingual.go
node.go
node_test.go
page.go Add GitInfo 2016-11-01 23:04:12 +01:00
page_permalink_test.go
page_taxonomy_test.go
page_test.go
page_time_integration_test.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go
pageSort.go
pageSort_test.go
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go
pagination_test.go
path_separators_test.go
path_separators_windows_test.go
permalinks.go
permalinks_test.go
planner.go
redis.cn.md
robotstxt_test.go
rss_test.go
scratch.go
scratch_test.go
shortcode.go
shortcode_test.go
shortcodeparser.go
shortcodeparser_test.go
site.go
site_show_plan_test.go
site_test.go
site_url_test.go
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
summary.go
taxonomy.go
taxonomy_test.go
translations.go