From: windch Date: Mon, 30 Sep 2013 01:05:19 +0000 (+1300) Subject: Update filesystem.go X-Git-Tag: v0.9~81 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8ce4bc7ab8ab5cf8347bcdcc2088877c92aab3cc;p=brevno-suite%2Fhugo Update filesystem.go bugfix: .Files() called twice in line 253, 256 in site.go. thus source files captured twice. Signed-off-by: Noah Campbell --- diff --git a/source/filesystem.go b/source/filesystem.go index 6c9f4e7c..d089c143 100644 --- 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 }