mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Fix static file change detection on Windows.
Fixed windows uses different filepath separator. The filepath.ToSlash shouldn't be used, because it can cause errors in filepath suffix and prefix testing since "c:\a" isn't a prefix of "c:/a/b/c".
This commit is contained in:
@@ -161,7 +161,7 @@ func (c *Config) GetAbsPath(name string) string {
|
||||
return name
|
||||
}
|
||||
|
||||
return filepath.ToSlash(filepath.Join(c.GetPath(), name))
|
||||
return filepath.Join(c.GetPath(), name)
|
||||
}
|
||||
|
||||
func (c *Config) findConfigFile(configFileName string) (string, error) {
|
||||
|
Reference in New Issue
Block a user