mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
resource/scss: Add IncludePaths config option
Takes paths relative to the current working dir. Fixes #4921
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user