diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-07-30 16:14:41 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-07-30 16:21:02 +0300 |
commit | a0859dc67284988a397e265f7e83ea07357e9eb8 (patch) | |
tree | c55c13a55b474281788ea35433ddc121d26dde5e /source/filesystem.go | |
parent | 94892726816ce0c0af05e10c4706149f4b4baf1c (diff) |
Make LazyFileReader use the Afero source fs
Fixes #2317
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 } |