Make LazyFileReader use the Afero source fs

Fixes #2317
This commit is contained in:
Bjørn Erik Pedersen
2016-07-30 15:14:41 +02:00
parent 9489272681
commit a0859dc672
4 changed files with 30 additions and 22 deletions

View File

@@ -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
}