diff options
author | Bjørn Erik Pedersen <[email protected]> | 2016-02-14 12:16:03 +0100 |
---|---|---|
committer | Steve Francia <[email protected]> | 2016-03-21 19:13:29 -0400 |
commit | e5aa47749157e4c49a645d37df89fa76b0e8f952 (patch) | |
tree | 357f08c588583925d8e7a1d28e63b9f2b83a027a /source | |
parent | 6258d48b0220fa59edf50a32031677eb7b7944d4 (diff) | |
download | hugo-e5aa47749157e4c49a645d37df89fa76b0e8f952.tar.gz hugo-e5aa47749157e4c49a645d37df89fa76b0e8f952.zip |
Add support for symbolic links for content, layout, static, theme
Note: This is for the content roots only, but that should satisfy most needs.
Fixes #1855
Diffstat (limited to 'source')
-rw-r--r-- | source/filesystem.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/filesystem.go b/source/filesystem.go index 0f5358429..66270c589 100644 --- a/source/filesystem.go +++ b/source/filesystem.go @@ -14,6 +14,7 @@ package source import ( + "github.com/spf13/hugo/hugofs" "io" "os" "path/filepath" @@ -92,7 +93,12 @@ func (f *Filesystem) captureFiles() { return err } - filepath.Walk(f.Base, walker) + err := helpers.SymbolicWalk(hugofs.SourceFs, f.Base, walker) + + if err != nil { + jww.ERROR.Println(err) + } + } func (f *Filesystem) shouldRead(filePath string, fi os.FileInfo) (bool, error) { |