Bjørn Erik Pedersen
e9750d831f
hugolib: Continue GitInfo lookup on error
...
The current logic stops looking after the first failure to connect a page with a Git commit. This implies a fatal error, but that may not be the case.
2018-02-22 17:21:09 +01:00
Bjørn Erik Pedersen
d8717cd4c7
all: Update import paths to gohugoio/hugo
2017-06-13 18:42:45 +02:00
Bjørn Erik Pedersen
5ad2f17693
hugolib: Make missing GitInfo a WARNING
...
And not an ERROR.
Fixes #3376
2017-04-26 11:03:12 +02:00
Bjørn Erik Pedersen
93ca7c9e95
all: Refactor to nonglobal Viper, i18n etc.
...
This is a final rewrite that removes all the global state in Hugo, which also enables
the use if `t.Parallel` in tests.
Updates #2701
Fixes #3016
2017-02-17 17:15:26 +01:00
Bjørn Erik Pedersen
c71e1b106e
all: Refactor to nonglobal file systems
...
Updates #2701
Fixes #2951
2017-02-04 11:37:25 +07:00
David Kassa
09a0af94f5
Fix Appveyor Windows build and GitInfo path issue on Windows
2017-01-01 23:16:58 +01:00
Bjørn Erik Pedersen
c8d3124dde
node to page: Remove Node
...
And misc. TODO-fixes
Updates #2297
2016-11-22 09:57:03 +01:00
Bjørn Erik Pedersen
698b994f71
node to page: Fix the page collections
...
Updates #2297
2016-11-22 09:57:03 +01:00
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