mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Make sure target destination has the right path separator.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
@@ -40,7 +40,7 @@ func (fs *Filesystem) Publish(path string, r io.Reader) (err error) {
|
||||
}
|
||||
|
||||
func (fs *Filesystem) Translate(src string) (dest string, err error) {
|
||||
return filepath.Join(fs.PublishDir, src), nil
|
||||
return filepath.Join(fs.PublishDir, filepath.FromSlash(src)), nil
|
||||
}
|
||||
|
||||
func (fs *Filesystem) extension(ext string) string {
|
||||
|
Reference in New Issue
Block a user