mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
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
This commit is contained in:
committed by
Steve Francia
parent
6258d48b02
commit
e5aa477491
@@ -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) {
|
||||
|
Reference in New Issue
Block a user