diff options
Diffstat (limited to 'source/filesystem.go')
-rw-r--r-- | source/filesystem.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/filesystem.go b/source/filesystem.go index 0ce5808d1..9d723685e 100644 --- a/source/filesystem.go +++ b/source/filesystem.go @@ -14,13 +14,14 @@ package source import ( - "github.com/spf13/hugo/hugofs" "io" "os" "path/filepath" "regexp" "strings" + "github.com/spf13/hugo/hugofs" + "github.com/spf13/viper" "github.com/spf13/hugo/helpers" @@ -84,7 +85,7 @@ func (f *Filesystem) captureFiles() { return err } if b { - rd, err := NewLazyFileReader(filePath) + rd, err := NewLazyFileReader(hugofs.Source(), filePath) if err != nil { return err } |