resource/scss: Add IncludePaths config option

Takes paths relative to the current working dir.

Fixes #4921
This commit is contained in:
Bjørn Erik Pedersen
2018-07-20 15:02:35 +02:00
parent f01505c910
commit 166483fe12
7 changed files with 100 additions and 21 deletions

View File

@@ -244,8 +244,7 @@ func (d *SourceFilesystem) RealDirs(from string) []string {
var dirnames []string
for _, dir := range d.Dirnames {
dirname := filepath.Join(dir, from)
if _, err := hugofs.Os.Stat(dirname); err == nil {
if _, err := d.SourceFs.Stat(dirname); err == nil {
dirnames = append(dirnames, dirname)
}
}