mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Use / for template names regardless of platform.
The path seperator was causing templates to not be loaded on windows. Now all template names use / internally.
This commit is contained in:
@@ -148,7 +148,7 @@ func FindPath() (string, error) {
|
||||
}
|
||||
|
||||
func (c *Config) GetAbsPath(name string) string {
|
||||
if path.IsAbs(name) {
|
||||
if filepath.IsAbs(name) {
|
||||
return name
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user