summaryrefslogtreecommitdiffstats
path: root/hugolib/gitinfo.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-13 14:27:10 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-22 09:57:03 +0100
commitc8d3124ddeb86093caf1b18dfaa328c3053e5b63 (patch)
tree70ff5902eb6ceb5e27202c21b9189e18ee3ea8cb /hugolib/gitinfo.go
parent9347084d61a91c73bba1e04790b029163c38bacf (diff)
node to page: Remove Node
And misc. TODO-fixes Updates #2297
Diffstat (limited to 'hugolib/gitinfo.go')
-rw-r--r--hugolib/gitinfo.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/hugolib/gitinfo.go b/hugolib/gitinfo.go
index 520b7e5d0..b2119048e 100644
--- a/hugolib/gitinfo.go
+++ b/hugolib/gitinfo.go
@@ -52,7 +52,10 @@ func (h *HugoSites) assembleGitInfo() {
s := h.Sites[0]
for _, p := range s.AllPages {
- // TODO(bep) np consider other nodes
+ if p.Path() == "" {
+ // Home page etc. with no content file.
+ continue
+ }
// Git normalizes file paths on this form:
filename := path.Join(contentRoot, contentDir, filepath.ToSlash(p.Path()))
g, ok := gitMap[filename]