mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
@@ -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]
|
||||
|
Reference in New Issue
Block a user