mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
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>
This commit is contained in:
@@ -27,7 +27,7 @@ type Filesystem struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (f *Filesystem) Files() []*File {
|
func (f *Filesystem) Files() []*File {
|
||||||
f.captureFiles()
|
if len(f.files)<1 {f.captureFiles()}
|
||||||
return f.files
|
return f.files
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user