shithub: hugo

Download patch

ref: 53c9e890a2ae8790c801a7435758b1dedd2304d0
parent: 3ab00e6e641637861a2a073b5923eef3503454cb
author: David Calavera <[email protected]>
date: Wed Jun 10 16:29:12 EDT 2015

Make sure target destination has the right path separator.

Signed-off-by: David Calavera <[email protected]>

--- a/target/file.go
+++ b/target/file.go
@@ -40,7 +40,7 @@
 }
 
 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 {