mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Make sure target destination has the right path separator.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
3ab00e6e64
commit
53c9e890a2
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue