mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Make sure target destination has the right path separator.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
+1
-1
@@ -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