From e5aa47749157e4c49a645d37df89fa76b0e8f952 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Sun, 14 Feb 2016 12:16:03 +0100 Subject: 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 --- source/filesystem.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/filesystem.go') 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) { -- cgit v1.2.3