mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05: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:
parent
94d7fe52f8
commit
8ce4bc7ab8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue