Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwindch <windch@users.noreply.github.com>2013-09-30 05:05:19 +0400
committerNoah Campbell <noahcampbell@gmail.com>2013-09-30 06:43:38 +0400
commit8ce4bc7ab8ab5cf8347bcdcc2088877c92aab3cc (patch)
tree547d0f241a015903e23b3e83c2948f2ac401da35 /source/filesystem.go
parent94d7fe52f87a3188a27767433e7a07f5ada84988 (diff)
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 (limited to 'source/filesystem.go')
-rw-r--r--source/filesystem.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/filesystem.go b/source/filesystem.go
index 6c9f4e7c1..d089c143e 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
}