mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
tocss: Fix the import resolving from absolute to relative assets paths
Fixes #12137
This commit is contained in:
@@ -362,7 +362,7 @@ func (d *SourceFilesystem) ReverseLookup(filename string, checkExists bool) ([]h
|
||||
var cps []hugofs.ComponentPath
|
||||
hugofs.WalkFilesystems(d.Fs, func(fs afero.Fs) bool {
|
||||
if rfs, ok := fs.(hugofs.ReverseLookupProvder); ok {
|
||||
if c, err := rfs.ReverseLookup(filename, checkExists); err == nil {
|
||||
if c, err := rfs.ReverseLookupComponent(d.Name, filename, checkExists); err == nil {
|
||||
cps = append(cps, c...)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user