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 Implement support for alias templates 2016-10-15 15:25:05 +02:00
author.go Revert the "standardize author data" 2016-09-18 19:16:39 +02:00
benchmark_test.go
config.go Add GitInfo 2016-11-01 23:04:12 +01:00
config_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
datafiles_test.go
embedded_shortcodes_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
gitinfo.go Add GitInfo 2016-11-01 23:04:12 +01:00
handler_base.go
handler_file.go
handler_meta.go
handler_page.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
handler_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
hugo_info.go
hugo_sites.go Add GitInfo 2016-11-01 23:04:12 +01:00
hugo_sites_test.go Add missing template error logging 2016-10-25 22:56:44 +02:00
i18n.go Log on error in translation file 2016-10-12 16:54:29 +02:00
media.go
menu.go
menu_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
multilingual.go Remove now superfluous lowercasing 2016-10-24 21:33:11 +02:00
node.go Avoid reading from Viper for path and URL funcs 2016-10-24 13:45:30 +02:00
node_test.go
page.go Add GitInfo 2016-11-01 23:04:12 +01:00
page_permalink_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
page_taxonomy_test.go
page_test.go Make it clear that Path is relative to content root 2016-10-28 10:35:19 +02:00
page_time_integration_test.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go
pageSort.go
pageSort_test.go Avoid reading from Viper for path and URL funcs 2016-10-24 13:45:30 +02:00
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go Avoid reading from Viper for path and URL funcs 2016-10-24 13:45:30 +02:00
pagination_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
path_separators_test.go
path_separators_windows_test.go
permalinks.go Avoid reading from Viper for path and URL funcs 2016-10-24 13:45:30 +02:00
permalinks_test.go Avoid reading from Viper for path and URL funcs 2016-10-24 13:45:30 +02:00
planner.go
redis.cn.md
robotstxt_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
rss_test.go Fix RSS Title regression 2016-10-28 14:46:33 +02:00
scratch.go
scratch_test.go
shortcode.go Add context to asciidoc/-tor error logging 2016-10-13 13:48:43 +02:00
shortcode_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
shortcodeparser.go all: Remove dead code 2016-10-13 13:51:16 +02:00
shortcodeparser_test.go Fix half-broken self-closing shortcodes 2016-09-27 21:11:34 +02:00
site.go Fix RSS Title regression 2016-10-28 14:46:33 +02:00
site_show_plan_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
site_test.go Fix RSS Title regression 2016-10-28 14:46:33 +02:00
site_url_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go all: Unify case of config variable names 2016-10-24 20:56:00 +02:00
summary.go
taxonomy.go Avoid reading from Viper for path and URL funcs 2016-10-24 13:45:30 +02:00
taxonomy_test.go
translations.go