hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 53c9e890a2ae8790c801a7435758b1dedd2304d0
parent 3ab00e6e641637861a2a073b5923eef3503454cb
Author: David Calavera <david.calavera@gmail.com>
Date:   Wed, 10 Jun 2015 20:29:12 -0700

Make sure target destination has the right path separator.

Signed-off-by: David Calavera <david.calavera@gmail.com>

Diffstat:
Mtarget/file.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/file.go b/target/file.go
@@ -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 {