Update filesystem.go - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8ce4bc7ab8ab5cf8347bcdcc2088877c92aab3cc
(DIR) parent 94d7fe52f87a3188a27767433e7a07f5ada84988
(HTM) Author: windch <windch@users.noreply.github.com>
Date: Mon, 30 Sep 2013 14:05:19 +1300
Update filesystem.go
bugfix: .Files() called twice in line 253, 256 in site.go. thus source files captured twice.
Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
Diffstat:
M source/filesystem.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/source/filesystem.go b/source/filesystem.go
@@ -27,7 +27,7 @@ type Filesystem struct {
}
func (f *Filesystem) Files() []*File {
- f.captureFiles()
+ if len(f.files)<1 {f.captureFiles()}
return f.files
}